You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
avcodec/shorten: fix decoding of files with number of samples lower than max_frame_size
Note that support of very big block sizes is not currently supported at all due too flawed logic in decoder. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@ -476,9 +476,11 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
if (!s->got_header) {
|
if (!s->got_header) {
|
||||||
if ((ret = read_header(s)) < 0)
|
if ((ret = read_header(s)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
if (avpkt->size) {
|
||||||
*got_frame_ptr = 0;
|
*got_frame_ptr = 0;
|
||||||
goto finish_frame;
|
goto finish_frame;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* if quit command was read previously, don't decode anything */
|
/* if quit command was read previously, don't decode anything */
|
||||||
if (s->got_quit_command) {
|
if (s->got_quit_command) {
|
||||||
|
Reference in New Issue
Block a user