Commit f5c300bf authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert "vdpau: fix bottom bleeding with software decoding"

This reverts commit 3447e875.
parent 3add8370
...@@ -65,7 +65,7 @@ static VdpStatus MixerSetupColors(filter_t *filter, const VdpProcamp *procamp, ...@@ -65,7 +65,7 @@ static VdpStatus MixerSetupColors(filter_t *filter, const VdpProcamp *procamp,
{ {
filter_sys_t *sys = filter->p_sys; filter_sys_t *sys = filter->p_sys;
VdpStatus err; VdpStatus err;
VdpColorStandard std = (filter->fmt_in.video.i_visible_height > 576) VdpColorStandard std = (filter->fmt_in.video.i_height > 576)
? VDP_COLOR_STANDARD_ITUR_BT_709 ? VDP_COLOR_STANDARD_ITUR_BT_709
: VDP_COLOR_STANDARD_ITUR_BT_601; : VDP_COLOR_STANDARD_ITUR_BT_601;
...@@ -187,7 +187,7 @@ static VdpVideoMixer MixerCreate(filter_t *filter) ...@@ -187,7 +187,7 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
VDP_VIDEO_MIXER_PARAMETER_CHROMA_TYPE, VDP_VIDEO_MIXER_PARAMETER_CHROMA_TYPE,
}; };
uint32_t width = filter->fmt_in.video.i_width; uint32_t width = filter->fmt_in.video.i_width;
uint32_t height = filter->fmt_in.video.i_visible_height; uint32_t height = filter->fmt_in.video.i_height;
const void *values[3] = { &width, &height, &sys->chroma, }; const void *values[3] = { &width, &height, &sys->chroma, };
err = vdp_video_mixer_create(sys->vdp, sys->device, featc, featv, err = vdp_video_mixer_create(sys->vdp, sys->device, featc, featv,
...@@ -332,8 +332,7 @@ static picture_t *VideoImport(filter_t *filter, picture_t *src) ...@@ -332,8 +332,7 @@ static picture_t *VideoImport(filter_t *filter, picture_t *src)
/* Create surface (TODO: reuse?) */ /* Create surface (TODO: reuse?) */
err = vdp_video_surface_create(sys->vdp, sys->device, sys->chroma, err = vdp_video_surface_create(sys->vdp, sys->device, sys->chroma,
filter->fmt_in.video.i_width, filter->fmt_in.video.i_width,
filter->fmt_in.video.i_visible_height, filter->fmt_in.video.i_height, &surface);
&surface);
if (err != VDP_STATUS_OK) if (err != VDP_STATUS_OK)
{ {
msg_Err(filter, "video %s %s failure: %s", "surface", "creation", msg_Err(filter, "video %s %s failure: %s", "surface", "creation",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment