diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-04-07 11:07:16 -0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-12 10:33:18 -0500 |
commit | 5595368bcc6df7d307876bc051f41a8c72f38ce9 (patch) | |
tree | 631a94a063126bb6482636b64cbc60ddaceb4e8c /libavformat/amr.c | |
parent | a384f6a7f73a8bd53046dd95a1ca0ac785d4add3 (diff) | |
download | ffmpeg-5595368bcc6df7d307876bc051f41a8c72f38ce9.tar.gz |
amr: set channel_layout
Diffstat (limited to 'libavformat/amr.c')
-rw-r--r-- | libavformat/amr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/amr.c b/libavformat/amr.c index cc4842ebd5..ba91d7c139 100644 --- a/libavformat/amr.c +++ b/libavformat/amr.c @@ -25,6 +25,8 @@ Write and read amr data according to RFC3267, http://www.ietf.org/rfc/rfc3267.tx Only mono files are supported. */ + +#include "libavutil/channel_layout.h" #include "avformat.h" #include "internal.h" @@ -97,6 +99,7 @@ static int amr_read_header(AVFormatContext *s) st->codec->sample_rate = 8000; } st->codec->channels = 1; + st->codec->channel_layout = AV_CH_LAYOUT_MONO; st->codec->codec_type = AVMEDIA_TYPE_AUDIO; avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); |