From: Paul B Mahol <[email protected]>

Signed-off-by: Justin Ruggles <[email protected]>
---
 libavformat/flacdec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c
index f3831c1..cb41971 100644
--- a/libavformat/flacdec.c
+++ b/libavformat/flacdec.c
@@ -119,8 +119,7 @@ static int flac_read_header(AVFormatContext *s,
                 offset += 14;
                 ti = bytestream_get_byte(&offset);
                 if (ti <= 0) return AVERROR_INVALIDDATA;
-                for (j = 0; j < ti; j++)
-                    offset += 12;
+                offset += ti * 12;
                 avpriv_new_chapter(s, track, st->time_base, start, 
AV_NOPTS_VALUE, isrc);
             }
         } else {
-- 
1.7.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to