diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-06-23 21:38:37 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-06-26 16:06:48 +0200 |
commit | ac85f631c9a9cc59aaca1c8dd6894fb1f701c594 (patch) | |
tree | 6da1d426c2be71486796029b0d4a7334442eaaa9 /doc | |
parent | 294daf71a7a1303b5ddd3cbefebed3b732d610f3 (diff) | |
download | ffmpeg-streaming-ac85f631c9a9cc59aaca1c8dd6894fb1f701c594.zip ffmpeg-streaming-ac85f631c9a9cc59aaca1c8dd6894fb1f701c594.tar.gz |
output example: set output channel layout
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/examples/output.c b/doc/examples/output.c index 620be15..3d14449 100644 --- 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) |