[FFmpeg-cvslog] amr demuxer: do not set AVCodecContext.frame_size.
Justin Ruggles
git at videolan.org
Tue Mar 6 06:16:00 CET 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sun Feb 26 23:12:03 2012 -0500| [ec2e767bf31cc0a79c0bcb563352688fe7bf4274] | committer: Justin Ruggles
amr demuxer: do not set AVCodecContext.frame_size.
it is not necessary.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ec2e767bf31cc0a79c0bcb563352688fe7bf4274
---
libavformat/amr.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/libavformat/amr.c b/libavformat/amr.c
index 708eace..9dd8471 100644
--- a/libavformat/amr.c
+++ b/libavformat/amr.c
@@ -100,14 +100,12 @@ static int amr_read_header(AVFormatContext *s)
st->codec->codec_tag = MKTAG('s', 'a', 'w', 'b');
st->codec->codec_id = CODEC_ID_AMR_WB;
st->codec->sample_rate = 16000;
- st->codec->frame_size = 320;
}
else
{
st->codec->codec_tag = MKTAG('s', 'a', 'm', 'r');
st->codec->codec_id = CODEC_ID_AMR_NB;
st->codec->sample_rate = 8000;
- st->codec->frame_size = 160;
}
st->codec->channels = 1;
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
More information about the ffmpeg-cvslog
mailing list