From b907655303868c24061714508dfdf4b33176d933 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 3 Aug 2012 17:56:14 +0200 Subject: examples/muxing: drop duplicated code in add_video_stream() --- doc/examples/muxing.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'doc') diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index ca5e107db3..4e62b8727a 100644 --- a/doc/examples/muxing.c +++ b/doc/examples/muxing.c @@ -203,12 +203,6 @@ static AVStream *add_video_stream(AVFormatContext *oc, enum CodecID codec_id) c = st->codec; - /* find the video encoder */ - codec = avcodec_find_encoder(codec_id); - if (!codec) { - fprintf(stderr, "codec not found\n"); - exit(1); - } avcodec_get_context_defaults3(c, codec); c->codec_id = codec_id; -- cgit v1.2.3