From 06d8fdb660fdb2ca18dffa3aa92e40d2a7909b95 Mon Sep 17 00:00:00 2001 From: Rainer Hochecker Date: Mon, 6 May 2013 21:27:59 +0200 Subject: [PATCH] Fix vdpau vc1 interlace modes also when using decoder vc1_vdpau. Signed-off-by: Carl Eugen Hoyos --- libavcodec/vdpau.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index b9a07cd6ce..04355b0682 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -307,7 +307,7 @@ void ff_vdpau_vc1_decode_picture(MpegEncContext *s, const uint8_t *buf, assert(render); /* fill LvPictureInfoVC1 struct */ - render->info.vc1.frame_coding_mode = v->fcm; + render->info.vc1.frame_coding_mode = v->fcm ? v->fcm + 1 : 0; render->info.vc1.postprocflag = v->postprocflag; render->info.vc1.pulldown = v->broadcast; render->info.vc1.interlace = v->interlace;