# HG changeset patch # User michael # Date 1168903569 0 # Node ID d9cd0e5255d7365084032725547601aeb8a06f5b # Parent 0ee71c12734ee56fc5e27c9aecb99b93844cafb9 fix segfault with http://sam.zoy.org/zzuf/lol-ffplay.mpg and http://sam.zoy.org/zzuf/lol-ffplay.m2v diff -r 0ee71c12734e -r d9cd0e5255d7 mpeg12.c --- a/mpeg12.c Mon Jan 15 07:41:28 2007 +0000 +++ b/mpeg12.c Mon Jan 15 23:26:09 2007 +0000 @@ -3178,6 +3178,10 @@ if(mpeg_field_start(s2) < 0) return -1; } + 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;