diff --git a/ffmpeg.c b/ffmpeg.c index 282f58f9e0..501af29d91 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2841,6 +2841,7 @@ static int transcode_init(void) "Error initializing the output stream codec context.\n"); exit_program(1); } + ost->st->codec->codec= ost->enc_ctx->codec; } /* init input streams */