From 4f820131fa9fbb0a64d7cc469fa471905fc91944 Mon Sep 17 00:00:00 2001 From: Andrey Utkin Date: Thu, 8 Dec 2011 13:56:29 +0200 Subject: mpegvideo: remove abort() in ff_find_unused_picture() Signed-off-by: Luca Barbato --- libavcodec/vc1dec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/vc1dec.c') diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 3f84df2..1151318 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]; } -- cgit v1.1