segfault fix

Originally committed as revision 3017 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-04-16 01:02:39 +00:00
parent 137c8468e8
commit e4a1fdfdee
1 changed files with 2 additions and 1 deletions

View File

@ -716,7 +716,8 @@ assert(s->current_picture.pict_type == s->pict_type);
ff_print_debug_info(s, pict);
} else {
*pict= *(AVFrame*)&s->last_picture;
ff_print_debug_info(s, pict);
if(pict)
ff_print_debug_info(s, pict);
}
/* Return the Picture timestamp as the frame number */