aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/nvdec_mpeg12.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2025-07-23 15:09:01 +0200
committerNiklas Haas <git@haasn.dev>2025-08-11 09:38:38 +0200
commite29a99a975b722463c19d53f67e32f12f6dfe445 (patch)
tree4d9bca641d2853d990b1cfdbda6d25dead923569 /libavcodec/nvdec_mpeg12.c
parent3bf8bf965fb69f873e52d34a85d1ecb722a9fe7f (diff)
downloadffmpeg-master.tar.gz
fftools/ffmpeg_enc: don't ignore user selected chroma locationHEADmaster
This code always ignored the user-provided enc_ctx->chroma_sample_location in favor of the location tagged on the frame. This leads to a very (IMHO) unexpected outcome where -chroma_sample_location works differently from the related options like -colorspace and -color_range, the latter of which override the frame properties as a consequence of being configured on the filter graph output. The discrepancy comes from the fact that the chroma sample location does not itself participate in filter graph negotiation. Solve the situation by only overriding the enc_ctx option if it was left unspecified by the user, and otherwise printing a warning if the requested parameter does not match the frame parameter.
Diffstat (limited to 'libavcodec/nvdec_mpeg12.c')
0 files changed, 0 insertions, 0 deletions