mpegvideo: remove write-only variable
authorMans Rullgard <mans@mansr.com>
Thu, 11 Oct 2012 20:51:41 +0000 (21:51 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 12 Oct 2012 21:21:10 +0000 (22:21 +0100)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/mpegvideo.c

index ff9b865..d6f7af2 100644 (file)
@@ -826,7 +826,7 @@ fail:
  */
 av_cold int ff_MPV_common_init(MpegEncContext *s)
 {
-    int i, err;
+    int i;
     int nb_slices = (HAVE_THREADS &&
                      s->avctx->active_thread_type & FF_THREAD_SLICE) ?
                     s->avctx->thread_count : 1;
@@ -913,7 +913,7 @@ av_cold int ff_MPV_common_init(MpegEncContext *s)
     }
 
     if (s->width && s->height) {
-        if ((err = init_context_frame(s)))
+        if (init_context_frame(s))
             goto fail;
 
         s->parse_context.state = -1;