X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ffmpeg%2Flibavformat%2Friffdec.c;h=88e2229a778418af70d71c8f8d0e4d9d7a21ba0c;hb=8fd34b4a89bf48bd51f52d72b09a8ae21a73b1df;hp=09fee9d603ae28a829c20ed914f4e65c52e03dab;hpb=2ba45a602cbfa7b771effba9b11bb4245c21bc00;p=deb_ffmpeg.git 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);