diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-04-19 00:27:08 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-04-19 00:37:41 +0300 |
commit | 13406b6124a5120ad029476119b3cdc010fdf0b7 (patch) | |
tree | cafe6fa480ed6a16ba7f232d9591bfc2a82194e1 | |
parent | f25367f4b41c55868d3cd48388aac8f8f50f6369 (diff) |
avcodec/tak_parser: fix parsing of streams with bunch of small frames at end
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/tak_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tak_parser.c b/libavcodec/tak_parser.c index 4f2149ae11..1417fb4526 100644 --- a/libavcodec/tak_parser.c +++ b/libavcodec/tak_parser.c @@ -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; |