examples/muxing: drop duplicated code in add_video_stream()

pull/28/head
Stefano Sabatini 12 years ago
parent 2db097ca76
commit b907655303
  1. 6
      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;

Loading…
Cancel
Save