summaryrefslogtreecommitdiff
path: root/libavcodec/shorten.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2016-04-08 10:35:11 +0200
committerPaul B Mahol <onemda@gmail.com>2016-04-08 22:32:32 +0200
commit966d43d7786d1a95162e3feff1d5bfbcb58e571f (patch)
treee7f691d6e8c2136ee1f8eff941a65474c75118ad /libavcodec/shorten.c
parent6936c11533a4cce09566488f6c5c1429bd8387c5 (diff)
avcodec/shorten: fix decoding of last frame
Previously it would be always discarded. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/shorten.c')
-rw-r--r--libavcodec/shorten.c4
1 files changed, 1 insertions, 3 deletions
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;