aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/ssim.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-21 07:26:17 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-24 08:00:57 +0100
commite65a5df4faf60f08b39381651b61ace6998eee3d (patch)
treecf36d388aaac8043bee92bf69567dbf07ad0ece3 /libavfilter/ssim.h
parent88b7d9fd367c16302c9cc5dfbd045a7cc684eca4 (diff)
downloadffmpeg-e65a5df4faf60f08b39381651b61ace6998eee3d.tar.gz
avcodec/avcodec: Update check for identical colorspace/primaries/trc names
If the numerical constants for colorspace, transfer characteristics and color primaries coincide, the current code presumes the corresponding names to be identical and prints only one of them obtained via av_get_colorspace_name(). There are two issues with this: The first is that the underlying assumption is wrong: The names only coincide in the 0-7 range, they differ for more recent additions. The second is that av_get_colorspace_name() is outdated itself; it has not been updated with the names of the newly defined colorspaces. Fix both of this by using the names from av_color_(space|primaries|transfer)_name() and comparing them via strcmp; don't use av_get_colorspace_name() at all. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavfilter/ssim.h')
0 files changed, 0 insertions, 0 deletions