diff --git a/output_example.c b/output_example.c index 07869499aad78053857f3f348f8c7ab267dd039a..faaaca9cb7c2f99cf3edd40b1bc9bdcb0e2d92ac 100644 --- a/output_example.c +++ b/output_example.c @@ -63,9 +63,6 @@ AVStream *add_audio_stream(AVFormatContext *oc, int codec_id) exit(1); } c = &st->codec; - - avcodec_get_context_defaults(c); - c->codec_type = CODEC_TYPE_AUDIO; /* put sample parameters */ @@ -161,9 +158,6 @@ AVStream *add_video_stream(AVFormatContext *oc, int codec_id) } c = &st->codec; - - avcodec_get_context_defaults(c); - c->codec_type = CODEC_TYPE_VIDEO; /* put sample parameters */