Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 10 years ago
parent
commit
a742a0536d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/mp3dec.c

+ 1
- 0
libavformat/mp3dec.c 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) {


Loading…
Cancel
Save