summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-09-19 19:20:27 +0200
committerwm4 <wm4@nowhere>2017-09-19 19:20:27 +0200
commita4de782272cd6a3876b2fe661386a7a01a26e27a (patch)
treed929311357d7f86c864ce7932f6ceab90dc43a6c /audio
parent06927fefdd8eac166083157e63ae356b31bc1b2d (diff)
downloadmpv-a4de782272cd6a3876b2fe661386a7a01a26e27a.tar.bz2
mpv-a4de782272cd6a3876b2fe661386a7a01a26e27a.tar.xz
mp_image: don't guess colorspace params in mp_image_copy_attributes()
This is "wrong", because you might want mp_image_copy_attributes() to preserve the information that the colorspace parameters are unknown. This is important for hwdec -copy modes, which call this function before fix_image_params() and mp_colorspace_merge() are called. Instead, just wipe the colorspace attributes if the pixel format changes in an apparently incompatible way. Use mp_image_params_guess_csp() logic for this and factor that into its own function. mp_image_set_attributes() attempts to do something similar, so change that in the same way. Also, mp_image_params_guess_csp() just returned if the imgfmt was invalid or unset - just remove that part, because it annoyingly doesn't fit into the new code, and had little reason to exist to begin with. (Probably.)
Diffstat (limited to 'audio')
0 files changed, 0 insertions, 0 deletions