avformat/mp3dec: Allow forcing the use of the xing TOC for CBR files

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-04-15 13:24:19 +02:00
parent 0842df2619
commit a742a0536d
1 changed files with 1 additions and 0 deletions

View File

@ -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) {