summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau.c
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2013-05-06 21:27:59 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-05-06 21:55:14 +0200
commit06d8fdb660fdb2ca18dffa3aa92e40d2a7909b95 (patch)
treeab0f8c837f8639b03e66776f9f87060bbe3661c4 /libavcodec/vdpau.c
parentb3e9fd1fe5786672c5d53e91f518419d05598ea4 (diff)
Fix vdpau vc1 interlace modes also when using decoder vc1_vdpau.
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
Diffstat (limited to 'libavcodec/vdpau.c')
-rw-r--r--libavcodec/vdpau.c2
1 files changed, 1 insertions, 1 deletions
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;