From: Paul B Mahol Date: Fri, 8 Apr 2016 08:35:11 +0000 (+0200) Subject: avcodec/shorten: fix decoding of last frame X-Git-Tag: n3.1~1086 X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=966d43d7786d1a95162e3feff1d5bfbcb58e571f;ds=sidebyside avcodec/shorten: fix decoding of last frame Previously it would be always discarded. Signed-off-by: Paul B Mahol --- diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index 1d22a243c8..7973c95917 100644 --- a/libavcodec/shorten.c +++ b/libavcodec/shorten.c @@ -543,10 +543,8 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data, s->got_quit_command = 1; break; } - if (cmd == FN_BLOCKSIZE || cmd == FN_QUIT) { - *got_frame_ptr = 0; + if (cmd == FN_QUIT) break; - } } else { /* process audio command */ int residual_size = 0;