diff options
author | Michael Niedermayer | 2007-01-24 11:20:01 +0000 |
---|---|---|
committer | Michael Niedermayer | 2007-01-24 11:20:01 +0000 |
commit | 0c74098b1c4cc566ee0af19374b03d1e425dd1f0 (patch) | |
tree | 00c22539f3f8228497dd10e3349d8854c40db4b0 /libavcodec | |
parent | 9ce5f3b7ea0c395cd81b941fd81d04fe34929bd7 (diff) |
crash fix by Carl Eugen Hoyos cehoyos ag.or at
Originally committed as revision 7684 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/svq3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 8c08409e95..e02981e615 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -910,7 +910,8 @@ static int svq3_decode_frame (AVCodecContext *avctx, s->next_p_frame_damaged = 0; } - frame_start (h); + if (frame_start (h) < 0) + return -1; if (s->pict_type == B_TYPE) { h->frame_num_offset = (h->slice_num - h->prev_frame_num); |