[FFmpeg-cvslog] r20671 - trunk/libavcodec/error_resilience.c

michael subversion
Mon Nov 30 20:15:19 CET 2009


Author: michael
Date: Mon Nov 30 20:15:19 2009
New Revision: 20671

Log:
Disable error resilience for field pictures, this was never supported,
results where more or less random but should not have crashed.

Modified:
   trunk/libavcodec/error_resilience.c

Modified: trunk/libavcodec/error_resilience.c
==============================================================================
--- trunk/libavcodec/error_resilience.c	Mon Nov 30 20:14:00 2009	(r20670)
+++ trunk/libavcodec/error_resilience.c	Mon Nov 30 20:15:19 2009	(r20671)
@@ -685,6 +685,7 @@ void ff_er_frame_end(MpegEncContext *s){
     if(!s->error_recognition || s->error_count==0 || s->avctx->lowres ||
        s->avctx->hwaccel ||
        s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU ||
+       s->picture_structure != PICT_FRAME || // we dont support ER of field pictures yet, though it should not crash if enabled
        s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return;
 
     if(s->current_picture.motion_val[0] == NULL){



More information about the ffmpeg-cvslog mailing list