diff options
author | wm4 <wm4@nowhere> | 2012-10-26 19:29:47 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-01 02:07:45 +0100 |
commit | 738aeb1c60c6ffe95e915e443598f8a51081bdfb (patch) | |
tree | c10472cd8e646344d0d5e2bf1644adcb002c424a /libmpcodecs/vf_screenshot.c | |
parent | 9ba52ea6efd41db9dbd08311380f7fa633e22aa2 (diff) | |
download | mpv-738aeb1c60c6ffe95e915e443598f8a51081bdfb.tar.bz2 mpv-738aeb1c60c6ffe95e915e443598f8a51081bdfb.tar.xz |
screenshot: let VOs pass colorspace information via mp_image
This removes the hack that screenshot_save() got the colorspace
information from the decoder. Instead, require the VOs to set the
colorspace information on the mp_images used to pass around the
screenshot data. This is more correct, as the image may have been
converted/modified in the video filter chain, although there's
nothing yet in the video filter chain which does this correctly.
Diffstat (limited to 'libmpcodecs/vf_screenshot.c')
-rw-r--r-- | libmpcodecs/vf_screenshot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmpcodecs/vf_screenshot.c b/libmpcodecs/vf_screenshot.c index 013525694a..604aab7835 100644 --- a/libmpcodecs/vf_screenshot.c +++ b/libmpcodecs/vf_screenshot.c @@ -143,6 +143,7 @@ static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts) image = *vf->priv->image; image.w = vf->priv->image->w; image.h = vf->priv->image->h; + vf_clone_mpi_attributes(&image, mpi); vf->priv->image_callback(vf->priv->image_callback_ctx, &image); vf->priv->store_slices = 0; } |