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:
294daf7
)
output example: set output channel layout
author
Anton Khirnov
<anton@khirnov.net>
Mon, 23 Jun 2014 19:38:37 +0000
(21:38 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Thu, 26 Jun 2014 14:06:48 +0000
(16:06 +0200)
doc/examples/output.c
patch
|
blob
|
history
diff --git
a/doc/examples/output.c
b/doc/examples/output.c
index
620be15
..
3d14449
100644
(file)
--- a/
doc/examples/output.c
+++ b/
doc/examples/output.c
@@
-34,6
+34,7
@@
#include <string.h>
#include <math.h>
+#include "libavutil/channel_layout.h"
#include "libavutil/mathematics.h"
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
@@
-90,6
+91,7
@@
static AVStream *add_audio_stream(AVFormatContext *oc, enum AVCodecID codec_id)
c->bit_rate = 64000;
c->sample_rate = 44100;
c->channels = 2;
+ c->channel_layout = AV_CH_LAYOUT_STEREO;
// some formats want stream headers to be separate
if (oc->oformat->flags & AVFMT_GLOBALHEADER)