diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index fe4c12aee4..e26c25da16 100644 --- a/doc/examples/muxing.c +++ b/doc/examples/muxing.c @@ -34,6 +34,7 @@ #include #include +#include #include #include #include @@ -109,6 +110,7 @@ static AVStream *add_stream(OutputStream *ost, AVFormatContext *oc, c->bit_rate = 64000; c->sample_rate = 44100; c->channels = 2; + c->channel_layout = AV_CH_LAYOUT_STEREO; break; case AVMEDIA_TYPE_VIDEO: