Hi, patch attached.
Fixes ticket #4712.
From e03ee9d75f0f9cb37498bd9ac613c460fadf1145 Mon Sep 17 00:00:00 2001 From: Paul B Mahol <one...@gmail.com> Date: Fri, 8 Apr 2016 10:35:11 +0200 Subject: [PATCH] avcodec/shorten: fix decoding of last frame Previously it would be always discarded. Signed-off-by: Paul B Mahol <one...@gmail.com> --- libavcodec/shorten.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c index 1d22a24..7973c95 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; -- 2.5.0
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel