mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-02 21:12:12 +00:00
Set frame_size in the amr demuxer
Originally committed as revision 25030 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
744a882f6c
commit
8bb90c5394
@ -100,12 +100,14 @@ static int amr_read_header(AVFormatContext *s,
|
|||||||
st->codec->codec_tag = MKTAG('s', 'a', 'w', 'b');
|
st->codec->codec_tag = MKTAG('s', 'a', 'w', 'b');
|
||||||
st->codec->codec_id = CODEC_ID_AMR_WB;
|
st->codec->codec_id = CODEC_ID_AMR_WB;
|
||||||
st->codec->sample_rate = 16000;
|
st->codec->sample_rate = 16000;
|
||||||
|
st->codec->frame_size = 320;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
st->codec->codec_tag = MKTAG('s', 'a', 'm', 'r');
|
st->codec->codec_tag = MKTAG('s', 'a', 'm', 'r');
|
||||||
st->codec->codec_id = CODEC_ID_AMR_NB;
|
st->codec->codec_id = CODEC_ID_AMR_NB;
|
||||||
st->codec->sample_rate = 8000;
|
st->codec->sample_rate = 8000;
|
||||||
|
st->codec->frame_size = 160;
|
||||||
}
|
}
|
||||||
st->codec->channels = 1;
|
st->codec->channels = 1;
|
||||||
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||||
|
Loading…
Reference in New Issue
Block a user