Commit 8fb4dba8 authored by Jason Hsu's avatar Jason Hsu Committed by Michael Niedermayer

doc/examples/remuxing: dont use the input codec_tag, it may be invalid tor the output

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 100e8f8b
......@@ -99,6 +99,7 @@ int main(int argc, char **argv)
fprintf(stderr, "Failed to copy context from input to output stream codec context\n");
goto end;
}
out_stream->codec->codec_tag = 0;
if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER)
out_stream->codec->flags |= CODEC_FLAG_GLOBAL_HEADER;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment