Skip to content
Snippets Groups Projects
Commit b9076553 authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

examples/muxing: drop duplicated code in add_video_stream()

parent 2db097ca
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment