]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vp3.c
avfilter: Remove deprecated resample_lavr_opts
[ffmpeg] / libavcodec / vp3.c
index 2a1da6b062d40bd0d7429679079afbc5d518fccf..57c6eb1ff9812ab7073a00dd0b8588b6ee3470c8 100644 (file)
@@ -2875,6 +2875,9 @@ static int theora_decode_header(AVCodecContext *avctx, GetBitContext *gb)
     int ret;
     AVRational fps, aspect;
 
+    if (get_bits_left(gb) < 206)
+        return AVERROR_INVALIDDATA;
+
     s->theora_header = 0;
     s->theora = get_bits(gb, 24);
     av_log(avctx, AV_LOG_DEBUG, "Theora bitstream version %X\n", s->theora);