mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
avcodec/shorten: fix decoding of last frame
Previously it would be always discarded. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
6936c11533
commit
966d43d778
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user