projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ce7f82
)
westwood_aud: set channel layout
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 7 Apr 2012 22:50:41 +0000
(18:50 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 12 Nov 2012 15:33:22 +0000
(10:33 -0500)
libavformat/westwood_aud.c
patch
|
blob
|
history
diff --git
a/libavformat/westwood_aud.c
b/libavformat/westwood_aud.c
index 806aea66ea27323f44edc22d95a635c60fd13b48..2a06c2952baa17733656c4c334f2a4559182f307 100644
(file)
--- a/
libavformat/westwood_aud.c
+++ b/
libavformat/westwood_aud.c
@@
-33,6
+33,7
@@
* qualify a file. Refer to wsaud_probe() for the precise parameters.
*/
+#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "internal.h"
@@
-120,6
+121,8
@@
static int wsaud_read_header(AVFormatContext *s)
avpriv_set_pts_info(st, 64, 1, sample_rate);
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
st->codec->channels = channels;
+ st->codec->channel_layout = channels == 1 ? AV_CH_LAYOUT_MONO :
+ AV_CH_LAYOUT_STEREO;
st->codec->sample_rate = sample_rate;
return 0;