Commit 966d43d7 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/shorten: fix decoding of last frame

Previously it would be always discarded.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 6936c115
......@@ -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;
......
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