Mercurial > libavformat.hg
changeset 1890:04f9a3ae30af libavformat
seems safer to set pts timebase to sample rate, fix some mp3
author | bcoudurier |
---|---|
date | Thu, 08 Mar 2007 22:14:04 +0000 |
parents | e81bae269ae1 |
children | 2afa964cc3ea |
files | swf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/swf.c Thu Mar 08 21:29:38 2007 +0000 +++ b/swf.c Thu Mar 08 22:14:04 2007 +0000 @@ -679,7 +679,6 @@ v = get_byte(pb); swf->samples_per_frame = get_le16(pb); ast = av_new_stream(s, -1); /* -1 to avoid clash with video stream ch_id */ - av_set_pts_info(ast, 64, 256, swf->frame_rate); /* XXX same as video stream */ swf->audio_stream_index = ast->index; ast->codec->channels = 1 + (v&1); ast->codec->codec_type = CODEC_TYPE_AUDIO; @@ -689,6 +688,7 @@ if (!sample_rate_code) return AVERROR_IO; ast->codec->sample_rate = 11025 << (sample_rate_code-1); + av_set_pts_info(ast, 64, 1, ast->codec->sample_rate); if (len > 4) url_fskip(pb,len-4);