[FFmpeg-cvslog] examples/muxing: drop duplicated code in add_video_stream()

Stefano Sabatini git at videolan.org
Sun Aug 5 15:49:18 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Fri Aug  3 17:56:14 2012 +0200| [b907655303868c24061714508dfdf4b33176d933] | committer: Stefano Sabatini

examples/muxing: drop duplicated code in add_video_stream()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b907655303868c24061714508dfdf4b33176d933
---

 doc/examples/muxing.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index ca5e107..4e62b87 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;



More information about the ffmpeg-cvslog mailing list