diff options
author | Andrey Utkin <andrey.krieger.utkin@gmail.com> | 2011-12-08 13:56:29 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2011-12-14 18:17:21 +0100 |
commit | 4f820131fa9fbb0a64d7cc469fa471905fc91944 (patch) | |
tree | 7c291b220f142617c22de3c4d89c8c2fd4b4bc06 /libavcodec/vc1dec.c | |
parent | 71ce76027d9df47f4ac80c2c114b47d51243ed8e (diff) | |
download | ffmpeg-4f820131fa9fbb0a64d7cc469fa471905fc91944.tar.gz |
mpegvideo: remove abort() in ff_find_unused_picture()
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 3f84df2d6c..1151318a47 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -5579,6 +5579,8 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data, * otherwise we cannot store anything in there. */ if (s->current_picture_ptr == NULL || s->current_picture_ptr->f.data[0]) { int i = ff_find_unused_picture(s, 0); + if (i < 0) + goto err; s->current_picture_ptr = &s->picture[i]; } |