diff options
author | wm4 <wm4@nowhere> | 2019-11-03 23:18:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-03 23:18:35 +0100 |
commit | 98352362ea17075400818e9439f9740c4c19bbbc (patch) | |
tree | 578497dfdeb529a1e40c59ff726aa6d2dff74c7d /player/command.c | |
parent | cfd659538688916ac79df072a56d65d327c69470 (diff) | |
download | mpv-98352362ea17075400818e9439f9740c4c19bbbc.tar.bz2 mpv-98352362ea17075400818e9439f9740c4c19bbbc.tar.xz |
img_format: remove some unused format flags
They were used at some point, but then fell into disuse. In general,
these old flags are all a bit fuzzy, so it's a good idea to remove them
as much as possible.
The comment about MP_IMGFLAG_PAL isn't true anymore. The old meaning was
deprecated at some point, and the flag was removed from "pseudo
paletted" formats. I think mpv at one point changed its own flag from
AV_PIX_FMT_FLAG_PSEUDOPAL to AV_PIX_FMT_FLAG_PAL, when the former was
deprecated, and it became unnecessary to allocate a palette for
non-paletted formats. (The one who deprecated in FFmpeg was me, if you
wonder.)
MP_IMGFLAG_PLANAR was used in command.c, use a relatively similar flag
as replacement.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index 1d0da8e105..ac49157aee 100644 --- a/player/command.c +++ b/player/command.c @@ -2359,7 +2359,7 @@ static int property_imgparams(struct mp_image_params p, int action, void *arg) {"average-bpp", SUB_PROP_INT(bpp), .unavailable = !bpp}, {"plane-depth", SUB_PROP_INT(desc.plane_bits), - .unavailable = !(desc.flags & MP_IMGFLAG_PLANAR)}, + .unavailable = !(desc.flags & MP_IMGFLAG_YUV_P)}, {"w", SUB_PROP_INT(p.w)}, {"h", SUB_PROP_INT(p.h)}, {"dw", SUB_PROP_INT(d_w)}, |