From 8750aef3d65c0d52946a9b52eba5f5203280b548 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 1 Jul 2015 05:10:51 +0200 Subject: [PATCH] ffmpeg_opt: Fix forcing fourccs Fixes Ticket4682 Signed-off-by: Michael Niedermayer --- ffmpeg_opt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index f7f65535d2..5c2bd48869 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -1204,6 +1204,7 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e uint32_t tag = strtol(codec_tag, &next, 0); if (*next) tag = AV_RL32(codec_tag); + ost->st->codec->codec_tag = ost->enc_ctx->codec_tag = tag; }