mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
avcodec/tak_parser: fix parsing of streams with bunch of small frames at end
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
f25367f4b4
commit
13406b6124
@ -59,7 +59,7 @@ static int tak_parse(AVCodecParserContext *s, AVCodecContext *avctx,
|
||||
|
||||
while (buf_size || t->index + needed <= pc->index) {
|
||||
if (buf_size && t->index + TAK_MAX_FRAME_HEADER_BYTES > pc->index) {
|
||||
int tmp_buf_size = FFMIN(2 * TAK_MAX_FRAME_HEADER_BYTES,
|
||||
int tmp_buf_size = FFMIN(TAK_MAX_FRAME_HEADER_BYTES,
|
||||
buf_size);
|
||||
const uint8_t *tmp_buf = buf;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user