diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-08-03 17:56:14 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-08-05 15:36:38 +0200 |
commit | b907655303868c24061714508dfdf4b33176d933 (patch) | |
tree | f06d6a7f85c77385d6ac9d1ed2d0bd35225efb77 /doc/examples/muxing.c | |
parent | 2db097ca76cee7c046e84b57e8ae19f60b716e56 (diff) | |
download | ffmpeg-b907655303868c24061714508dfdf4b33176d933.tar.gz |
examples/muxing: drop duplicated code in add_video_stream()
Diffstat (limited to 'doc/examples/muxing.c')
-rw-r--r-- | doc/examples/muxing.c | 6 |
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; |