examples/muxing: drop duplicated code in add_video_stream()

This commit is contained in:
Stefano Sabatini 2012-08-03 17:56:14 +02:00
parent 2db097ca76
commit b907655303
1 changed files with 0 additions and 6 deletions

View File

@ -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;