Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-11-05 16:11:18 +0400
committerClément Bœsch <ubitux@gmail.com>2011-11-05 18:07:19 +0400
commit0e5ecd806eadf7dd0ec645b1b69310ee76c0cd1c (patch)
treeaa4774ed8070f10d86a16ec814cd39deda0ad8a1 /doc/examples
parent454f1657288e75a9797381c8a26598674ea9bd68 (diff)
Replace remaining av_new_stream() with avformat_new_stream().
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/muxing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 0cdc895df8..77dccb49a8 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -64,11 +64,12 @@ static AVStream *add_audio_stream(AVFormatContext *oc, enum CodecID codec_id)
AVCodecContext *c;
AVStream *st;
- st = av_new_stream(oc, 1);
+ st = avformat_new_stream(oc, NULL);
if (!st) {
fprintf(stderr, "Could not alloc stream\n");
exit(1);
}
+ st->id = 1;
c = st->codec;
c->codec_id = codec_id;