ffmpeg: do not copy chroma_sample_location from the input stream

It will be set from the supplied AVFrame later on.
This commit is contained in:
Anton Khirnov 2021-11-12 18:24:07 +01:00
parent 0e22d2e59b
commit e8380bbae6

View File

@ -3332,8 +3332,6 @@ static int init_output_stream_encode(OutputStream *ost, AVFrame *frame)
if (ist) {
dec_ctx = ist->dec_ctx;
enc_ctx->chroma_sample_location = dec_ctx->chroma_sample_location;
}
if (enc_ctx->codec_type == AVMEDIA_TYPE_VIDEO) {