ffmpeg_opt: Fix forcing fourccs

Fixes Ticket4682

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8750aef3d6)
This commit is contained in:
Michael Niedermayer 2015-07-01 05:10:51 +02:00 committed by Carl Eugen Hoyos
parent 6ff54eb87b
commit a7fa1c9b2b
1 changed files with 1 additions and 0 deletions

View File

@ -1203,6 +1203,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;
}