avcodec/libx264: leave full range flag unchanged if unknown
authorJan Ekström <jeebjp@gmail.com>
Tue, 17 Aug 2021 19:57:36 +0000 (22:57 +0300)
committerJan Ekström <jeebjp@gmail.com>
Wed, 18 Aug 2021 09:09:37 +0000 (12:09 +0300)
commit7ca71b79f2b3256a0eef1a099b857ac9e4017e36
tree2cbbf8f23e2124ffc4c3eb1145d63475bbf5c459
parented47a4a842952055bb62f468a66a3714bc61972c
avcodec/libx264: leave full range flag unchanged if unknown

By default the x264 full range flag is set to -1. By not setting
it to something else, we can let libx264 handle the RGB case.
Additionally, change the preference order to user-specified range
first, and then any fall-back logic left for the YUVJ pix_fmts.

Fixes the capture part of #9374
libavcodec/libx264.c