Commit 47048aa3 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264: do not leave ret random on minor failures, causing major failure

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 82e4340f
...@@ -1751,6 +1751,7 @@ again: ...@@ -1751,6 +1751,7 @@ again:
goto end; goto end;
} }
ret = 0;
end: end:
/* clean up */ /* clean up */
if (h->cur_pic_ptr && !h->droppable) { if (h->cur_pic_ptr && !h->droppable) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment