Commit e4a1fdfd authored by Michael Niedermayer's avatar Michael Niedermayer

segfault fix

Originally committed as revision 3017 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 137c8468
...@@ -716,7 +716,8 @@ assert(s->current_picture.pict_type == s->pict_type); ...@@ -716,7 +716,8 @@ assert(s->current_picture.pict_type == s->pict_type);
ff_print_debug_info(s, pict); ff_print_debug_info(s, pict);
} else { } else {
*pict= *(AVFrame*)&s->last_picture; *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 */ /* Return the Picture timestamp as the frame number */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment