[Ffmpeg-cvslog] r7538 - trunk/libavcodec/mpeg12.c
michael
subversion
Tue Jan 16 00:26:10 CET 2007
Author: michael
Date: Tue Jan 16 00:26:09 2007
New Revision: 7538
Modified:
trunk/libavcodec/mpeg12.c
Log:
fix segfault with http://sam.zoy.org/zzuf/lol-ffplay.mpg and http://sam.zoy.org/zzuf/lol-ffplay.m2v
Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c (original)
+++ trunk/libavcodec/mpeg12.c Tue Jan 16 00:26:09 2007
@@ -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;
More information about the ffmpeg-cvslog
mailing list