X-Git-Url: https://git.piment-noir.org/?p=deb_ffmpeg.git;a=blobdiff_plain;f=ffmpeg%2Flibavformat%2Friffdec.c;h=88e2229a778418af70d71c8f8d0e4d9d7a21ba0c;hp=09fee9d603ae28a829c20ed914f4e65c52e03dab;hb=f6fa7814ccfe3e76514b36cf04f5cd3cb657c8cf;hpb=2ba45a602cbfa7b771effba9b11bb4245c21bc00 diff --git a/ffmpeg/libavformat/riffdec.c b/ffmpeg/libavformat/riffdec.c index 09fee9d..88e2229 100644 --- a/ffmpeg/libavformat/riffdec.c +++ b/ffmpeg/libavformat/riffdec.c @@ -84,6 +84,9 @@ int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size) { int id; + if (size < 14) + avpriv_request_sample(codec, "wav header size < 14"); + id = avio_rl16(pb); codec->codec_type = AVMEDIA_TYPE_AUDIO; codec->channels = avio_rl16(pb);