]> git.sesse.net Git - ffmpeg/commitdiff
mpegvideo: Conditionally build error_resilience bits
authorMartin Storsjö <martin@martin.st>
Wed, 6 Mar 2013 17:28:49 +0000 (18:28 +0100)
committerDiego Biurrun <diego@biurrun.de>
Thu, 7 Mar 2013 14:04:49 +0000 (15:04 +0100)
This breaks the dependency of mpegvideo on error_resilience allowing
compilation of components that depend on the former w/o the latter.

libavcodec/mpegvideo.c

index 96cb6a7ae51264d345488b417079b50a88df8137..7d880e4131806e702d31311b1b85e1dfd93850db 100644 (file)
@@ -2856,6 +2856,7 @@ void ff_MPV_report_decode_progress(MpegEncContext *s)
         ff_thread_report_progress(&s->current_picture_ptr->f, s->mb_y, 0);
 }
 
+#if CONFIG_ERROR_RESILIENCE
 void ff_mpeg_er_frame_start(MpegEncContext *s)
 {
     ERContext *er = &s->er;
@@ -2871,3 +2872,4 @@ void ff_mpeg_er_frame_start(MpegEncContext *s)
 
     ff_er_frame_start(er);
 }
+#endif /* CONFIG_ERROR_RESILIENCE */