diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 1fd5e506cd..562b1023e3 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) {