From 47048aa30b5c35fc8b030e819b9769b6bca03c08 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 24 Jun 2014 01:54:39 +0200 Subject: [PATCH] avcodec/h264: do not leave ret random on minor failures, causing major failure Signed-off-by: Michael Niedermayer --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 561fcb2622..7718b5118f 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1751,6 +1751,7 @@ again: goto end; } + ret = 0; end: /* clean up */ if (h->cur_pic_ptr && !h->droppable) {