From eb7aa6bde42c01a472e67a3ab8fbf14e158cd3cc Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 15 Dec 2016 20:31:23 +0100 Subject: [PATCH] avcodec/h263dec: Return the correct error code in explode mode Reviewed-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavcodec/h263dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index d0da1d31c1..75fc688e78 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -713,7 +713,7 @@ frame_end: } if (slice_ret < 0 && (avctx->err_recognition & AV_EF_EXPLODE)) - return ret; + return slice_ret; else return get_consumed_bytes(s, buf_size); }