summaryrefslogtreecommitdiff
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-04-16 01:02:39 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-16 01:02:39 +0000
commite4a1fdfdee94eb65f37d0564946b609896399fe0 (patch)
treefb7b034fed9158491ad91b39cf65a3ac91e5e6f3 /libavcodec/h263dec.c
parent137c8468e840e31f9399997b95e02341c67d0a31 (diff)
segfault fix
Originally committed as revision 3017 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index bff4435a8c..aaf38b1721 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 */