From a742a0536dbb8b5a280b21ffd76c8b4acdbd20a6 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 15 Apr 2015 13:24:19 +0200 Subject: [PATCH] avformat/mp3dec: Allow forcing the use of the xing TOC for CBR files Signed-off-by: Michael Niedermayer --- libavformat/mp3dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index 161f27d2ca..697dace018 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -428,6 +428,7 @@ static int mp3_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int best_score; if ( mp3->is_cbr + && (mp3->usetoc <= 0 || !mp3->xing_toc) && st->duration > 0 && mp3->header_filesize > s->internal->data_offset && mp3->frames) {