]> git.sesse.net Git - ffmpeg/commitdiff
Do not attempt to perform error concealment in lowres mode as this is
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Sep 2008 00:28:13 +0000 (00:28 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 30 Sep 2008 00:28:13 +0000 (00:28 +0000)
not supported currently.

Originally committed as revision 15465 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/error_resilience.c

index 1c9a07ca84bd90d1083da3adab8d83a4e0fb5489..f15b0b6cda7fcde6139e79a1f69253a3d8fb3304 100644 (file)
@@ -680,7 +680,7 @@ void ff_er_frame_end(MpegEncContext *s){
     int size = s->b8_stride * 2 * s->mb_height;
     Picture *pic= s->current_picture_ptr;
 
-    if(!s->error_recognition || s->error_count==0 ||
+    if(!s->error_recognition || s->error_count==0 || s->avctx->lowres ||
        s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return;
 
     if(s->current_picture.motion_val[0] == NULL){