summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau_vc1.c
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2013-07-24 19:50:42 +0300
committerDiego Biurrun <diego@biurrun.de>2013-07-25 14:19:17 +0200
commit582963a8156522582e55466be4a59974a8d909a5 (patch)
treebdbc6b319636f790767c93008b154c2a868e1e87 /libavcodec/vdpau_vc1.c
parent4a2ef39442bf7f0150db07a1fbfcf8286e4d44a3 (diff)
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: RĂ©mi Denis-Courmont <remi@remlab.net> Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/vdpau_vc1.c')
-rw-r--r--libavcodec/vdpau_vc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vdpau_vc1.c b/libavcodec/vdpau_vc1.c
index 4d84cd26f1..57d50fbcb0 100644
--- a/libavcodec/vdpau_vc1.c
+++ b/libavcodec/vdpau_vc1.c
@@ -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;