Commit dee13862 authored by Paul B Mahol's avatar Paul B Mahol

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: 's avatarPaul B Mahol <onemda@gmail.com>
parent c18fdc86
...@@ -476,8 +476,10 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data, ...@@ -476,8 +476,10 @@ 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;
*got_frame_ptr = 0; if (avpkt->size) {
goto finish_frame; *got_frame_ptr = 0;
goto finish_frame;
}
} }
/* if quit command was read previously, don't decode anything */ /* if quit command was read previously, don't decode anything */
......
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