From e4a1fdfdee94eb65f37d0564946b609896399fe0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 16 Apr 2004 01:02:39 +0000 Subject: [PATCH] segfault fix Originally committed as revision 3017 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h263dec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index bff4435..aaf38b1 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -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 */ -- 2.7.4