[FFmpeg-cvslog] avcodec/tak_parser: fix parsing of streams with bunch of small frames at end
Paul B Mahol
git at videolan.org
Mon Apr 18 23:58:09 CEST 2016
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Apr 18 23:27:08 2016 +0200| [13406b6124a5120ad029476119b3cdc010fdf0b7] | committer: Paul B Mahol
avcodec/tak_parser: fix parsing of streams with bunch of small frames at end
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=13406b6124a5120ad029476119b3cdc010fdf0b7
---
libavcodec/tak_parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/tak_parser.c b/libavcodec/tak_parser.c
index 4f2149a..1417fb4 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;
More information about the ffmpeg-cvslog
mailing list