git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a384f6a
)
amr: set channel_layout
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 7 Apr 2012 15:07:16 +0000
(11:07 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 12 Nov 2012 15:33:18 +0000
(10:33 -0500)
libavformat/amr.c
patch
|
blob
|
history
diff --git
a/libavformat/amr.c
b/libavformat/amr.c
index
cc4842e
..
ba91d7c
100644
(file)
--- 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);