]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pictordec.c
lavc: Allow very high bitrates in AVCPBProperties after next version bump.
[ffmpeg] / libavcodec / pictordec.c
index b29a484534150fa581de593bf655c65321ab32ee..65d2d49060b4f0aaee342fee12c13a904c234bf1 100644 (file)
@@ -236,6 +236,9 @@ static int decode_frame(AVCodecContext *avctx,
             }
         }
 
+        if (s->nb_planes - plane > 1)
+            return AVERROR_INVALIDDATA;
+
         if (plane < s->nb_planes && x < avctx->width) {
             int run = (y + 1) * avctx->width - x;
             if (bits_per_plane == 8)