Mercurial > libavcodec.hg
comparison error_resilience.c @ 10605:2c2827f792a1 libavcodec
Disable error resilience for field pictures, this was never supported,
results where more or less random but should not have crashed.
author | michael |
---|---|
date | Mon, 30 Nov 2009 19:15:19 +0000 |
parents | 7dfbd59b04e5 |
children | f864e7927dff |
comparison
equal
deleted
inserted
replaced
10604:ce2cf9e32b09 | 10605:2c2827f792a1 |
---|---|
683 Picture *pic= s->current_picture_ptr; | 683 Picture *pic= s->current_picture_ptr; |
684 | 684 |
685 if(!s->error_recognition || s->error_count==0 || s->avctx->lowres || | 685 if(!s->error_recognition || s->error_count==0 || s->avctx->lowres || |
686 s->avctx->hwaccel || | 686 s->avctx->hwaccel || |
687 s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU || | 687 s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU || |
688 s->picture_structure != PICT_FRAME || // we dont support ER of field pictures yet, though it should not crash if enabled | |
688 s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return; | 689 s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return; |
689 | 690 |
690 if(s->current_picture.motion_val[0] == NULL){ | 691 if(s->current_picture.motion_val[0] == NULL){ |
691 av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); | 692 av_log(s->avctx, AV_LOG_ERROR, "Warning MVs not available\n"); |
692 | 693 |