diff options
author | wm4 <wm4@nowhere> | 2013-08-24 16:33:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-24 17:03:06 +0200 |
commit | c3a0721d095969de1b86e7be8bce21854145e718 (patch) | |
tree | 7de912f39cdc3d40d83b86fa8d197addeb3f760d /video/decode | |
parent | 086b37a830261adb4ecf816413f1fec1dda9bbd4 (diff) | |
download | mpv-c3a0721d095969de1b86e7be8bce21854145e718.tar.bz2 mpv-c3a0721d095969de1b86e7be8bce21854145e718.tar.xz |
video/out: don't require VOs to handle screenshot aspect specially
This affects VOs which just reuse the mp_image from draw_image() to
return screenshots. The aspect of these images is never different
from the aspect the screenshots should be, so there's no reason to
adjust the aspect in these cases.
Other VOs still need it in order to restore the original image
attributes.
This requires some changes to the video filter code to make sure that
the aspect in the passed mp_images is consistent.
The changes in mplayer.c and vd_lavc.c are (probably) not strictly
needed for this commit, but contribute to consistency.
Diffstat (limited to 'video/decode')
-rw-r--r-- | video/decode/vd_lavc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 5303d1f748..838a3deab2 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -748,9 +748,7 @@ static int decode(struct sh_video *sh, struct demux_packet *packet, if (ctx->hwdec && ctx->hwdec->process_image) mpi = ctx->hwdec->process_image(ctx, mpi); - mpi->colorspace = ctx->image_params.colorspace; - mpi->levels = ctx->image_params.colorlevels; - mpi->chroma_location = ctx->image_params.chroma_location; + mp_image_set_params(mpi, &ctx->image_params); *out_image = mpi; return 1; |