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