mirror of https://git.ffmpeg.org/ffmpeg.git
set mp3 timebase to the lcm of all mp3 sample rates to fix frame duration
Originally committed as revision 20579 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c3988a59ce
commit
9c5a9e6b48
|
@ -143,6 +143,9 @@ static int mp3_read_header(AVFormatContext *s,
|
||||||
st->need_parsing = AVSTREAM_PARSE_FULL;
|
st->need_parsing = AVSTREAM_PARSE_FULL;
|
||||||
st->start_time = 0;
|
st->start_time = 0;
|
||||||
|
|
||||||
|
// lcm of all mp3 sample rates
|
||||||
|
av_set_pts_info(st, 64, 1, 14112000);
|
||||||
|
|
||||||
ff_id3v2_read(s);
|
ff_id3v2_read(s);
|
||||||
if (!av_metadata_get(s->metadata, "", NULL, AV_METADATA_IGNORE_SUFFIX))
|
if (!av_metadata_get(s->metadata, "", NULL, AV_METADATA_IGNORE_SUFFIX))
|
||||||
ff_id3v1_read(s);
|
ff_id3v1_read(s);
|
||||||
|
|
Loading…
Reference in New Issue