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) {