Index: libs/libavcodec/mpeg12.c =================================================================== --- libs/libavcodec/mpeg12.c (revision 12709) +++ libs/libavcodec/mpeg12.c (working copy) @@ -3311,10 +3311,19 @@ if(mpeg_field_start(s2) < 0) return -1; } + + /* + * backout fix introduced in rev.7538 + * + * http://svn.mplayerhq.hu/ffmpeg/trunk/libavcodec/mpeg12.c?r1=7538&view=log + * + * (stops FF working in mythtv) + * if(!s2->current_picture_ptr){ av_log(avctx, AV_LOG_ERROR, "current_picture not initalized\n"); return -1; } + */ if(avctx->thread_count > 1){ int threshold= (s2->mb_height*s->slice_count + avctx->thread_count/2) / avctx->thread_count;