[FFmpeg-cvslog] avcodec/h263dec: Return the correct error code in explode mode

Michael Niedermayer git at videolan.org
Thu Dec 15 23:30:07 EET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Dec 15 20:31:23 2016 +0100| [eb7aa6bde42c01a472e67a3ab8fbf14e158cd3cc] | committer: Michael Niedermayer

avcodec/h263dec: Return the correct error code in explode mode

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb7aa6bde42c01a472e67a3ab8fbf14e158cd3cc
---

 libavcodec/h263dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index d0da1d3..75fc688 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);
 }



More information about the ffmpeg-cvslog mailing list