Commit 582963a8 authored by Rainer Hochecker's avatar Rainer Hochecker Committed by Diego Biurrun

vdpau: Fix VC-1 interlaced mode

VDPAU expects the bitstream value (0, 2 or 3).
libavcodec uses an enum (0, 1 or 2).
Signed-off-by: 's avatarRémi Denis-Courmont <remi@remlab.net>
Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent 4a2ef394
......@@ -59,7 +59,7 @@ static int vdpau_vc1_start_frame(AVCodecContext *avctx,
else
info->picture_type = s->pict_type - 1 + s->pict_type / 3;
info->frame_coding_mode = v->fcm;
info->frame_coding_mode = v->fcm ? (v->fcm + 1) : 0;
info->postprocflag = v->postprocflag;
info->pulldown = v->broadcast;
info->interlace = v->interlace;
......
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