summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-08-03 17:56:14 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-08-05 15:36:38 +0200
commitb907655303868c24061714508dfdf4b33176d933 (patch)
treef06d6a7f85c77385d6ac9d1ed2d0bd35225efb77 /doc
parent2db097ca76cee7c046e84b57e8ae19f60b716e56 (diff)
examples/muxing: drop duplicated code in add_video_stream()
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/muxing.c6
1 files changed, 0 insertions, 6 deletions
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;