h264: reset ret to avoid propagating minor failures

Message ID 20140929113425.3E6235DE4F@aruru.libav.org
State New
Headers show

Commit Message

Janne Grunau Sept. 29, 2014, 11:34 a.m.
Module: libav
Branch: master
Commit: 2cd7c99498b1bcb450c328459cf85a686ce83456

Author:    Michael Niedermayer <michaelni@gmx.at>
Committer: Vittorio Giovara <vittorio.giovara@gmail.com>
Date:      Sun Sep 28 00:46:50 2014 +0100

h264: reset ret to avoid propagating minor failures

Unbreak 772d150a6e82542c06b0c251e73dd299d98d1027.

CC: libav-stable@libav.org
Bug-Id: 750 / 905753
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>

---

 libavcodec/h264.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 1fd5e50..562b102 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1679,6 +1679,7 @@  again:
             goto end;
     }
 
+    ret = 0;
 end:
     /* clean up */
     if (h->cur_pic_ptr && !h->droppable) {