You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
488 B

  1. --- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx
  2. +++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx
  3. @@ -478,6 +478,13 @@ ffmpeg_probe(DecoderClient *client, Inpu
  4. unsigned char buffer[BUFFER_SIZE];
  5. size_t nbytes = decoder_read(client, is, buffer, BUFFER_SIZE);
  6. +
  7. + if ((nbytes > 0) && (nbytes < 1024))
  8. + {
  9. + // Gobble some more data if header is small
  10. + nbytes += decoder_read(client, is, buffer + nbytes, BUFFER_SIZE - nbytes);
  11. + }
  12. +
  13. if (nbytes <= PADDING)
  14. return nullptr;