crash fix by Carl Eugen Hoyos cehoyos ag.or at

Originally committed as revision 7684 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-01-24 11:20:01 +00:00
parent 9ce5f3b7ea
commit 0c74098b1c
1 changed files with 2 additions and 1 deletions

View File

@ -910,7 +910,8 @@ static int svq3_decode_frame (AVCodecContext *avctx,
s->next_p_frame_damaged = 0; s->next_p_frame_damaged = 0;
} }
frame_start (h); if (frame_start (h) < 0)
return -1;
if (s->pict_type == B_TYPE) { if (s->pict_type == B_TYPE) {
h->frame_num_offset = (h->slice_num - h->prev_frame_num); h->frame_num_offset = (h->slice_num - h->prev_frame_num);