]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpeg12dec.c
tools/coverity: Add model for av_realloc
[ffmpeg] / libavcodec / mpeg12dec.c
index ca51c97389a6221b8c1d4282342b2e1dda3e3b1b..ac8160daffc12cf54bb92e917e4fda03e675cbc6 100644 (file)
@@ -2413,7 +2413,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
 #endif
 
     s->closed_gop = get_bits1(&s->gb);
-    /* broken_link indicate that after editing the
+    /* broken_link indicates that after editing the
      * reference frames of the first B-Frames after GOP I-Frame
      * are missing (open gop) */
     broken_link = get_bits1(&s->gb);
@@ -2808,6 +2808,7 @@ static int mpeg_decode_frame(AVCodecContext *avctx, void *data,
                             avctx->extradata, avctx->extradata_size);
         if (*got_output) {
             av_log(avctx, AV_LOG_ERROR, "picture in extradata\n");
+            av_frame_unref(picture);
             *got_output = 0;
         }
         s->extradata_decoded = 1;