X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmp3dec.c;h=aa487878357d48e1e67c3c77af922279aa1ced75;hb=a9ef21bbe2eb0115cfcb048d53f084e900092e71;hp=3101bae99da1dfb37b803f6fb5c0b87637637a4e;hpb=0bd42ae72c0e88826b823d8106286d5abe2028e7;p=ffmpeg diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index 3101bae99da..aa487878357 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -24,6 +24,7 @@ #include "libavutil/dict.h" #include "libavutil/mathematics.h" #include "avformat.h" +#include "internal.h" #include "id3v2.h" #include "id3v1.h" #include "libavcodec/mpegaudiodecheader.h" @@ -63,7 +64,7 @@ static int mp3_read_probe(AVProbeData *p) // keep this in sync with ac3 probe, both need to avoid // issues with MPEG-files! if (first_frames>=4) return AVPROBE_SCORE_MAX/2+1; - else if(max_frames>500)return AVPROBE_SCORE_MAX/2; + else if(max_frames>200)return AVPROBE_SCORE_MAX/2; else if(max_frames>=4) return AVPROBE_SCORE_MAX/4; else if(max_frames>=1) return 1; else return 0; @@ -147,7 +148,7 @@ static int mp3_read_header(AVFormatContext *s, st->start_time = 0; // lcm of all mp3 sample rates - av_set_pts_info(st, 64, 1, 14112000); + avpriv_set_pts_info(st, 64, 1, 14112000); off = avio_tell(s->pb);