summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd_ffmpeg.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-27 18:01:51 +0200
committerwm4 <wm4@nowhere>2012-10-28 15:31:32 +0100
commitd9839fe8623c855b6b335df3a5b9783e3ed22266 (patch)
treeb074361fef63d1a00b473e1859d373acb8c1e0e0 /libmpcodecs/vd_ffmpeg.c
parent1ba8090df7e64885f717133d769f59808c3c8807 (diff)
downloadmpv-d9839fe8623c855b6b335df3a5b9783e3ed22266.tar.bz2
mpv-d9839fe8623c855b6b335df3a5b9783e3ed22266.tar.xz
mp_image: add fields to pass colorspace down the filter chain
Note that this also adds a RGB colorspace for general symmetry. The frontend (colormatrix property and options) and mp_get_yuv2rgb_coeffs() don't support this.
Diffstat (limited to 'libmpcodecs/vd_ffmpeg.c')
-rw-r--r--libmpcodecs/vd_ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 343a26d8d3..941aae7175 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -768,6 +768,8 @@ static struct mp_image *decode(struct sh_video *sh, struct demux_packet *packet,
swap_palette(mpi->planes[1]);
#endif
+ mpi->colorspace = sh->colorspace;
+ mpi->levels = sh->color_range;
mpi->qscale = pic->qscale_table;
mpi->qstride = pic->qstride;
mpi->pict_type = pic->pict_type;