]> git.sesse.net Git - ffmpeg/commitdiff
Fix vdpau vc1 interlace modes also when using decoder vc1_vdpau.
authorRainer Hochecker <fernetmenta@online.de>
Mon, 6 May 2013 19:27:59 +0000 (21:27 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 6 May 2013 19:55:14 +0000 (21:55 +0200)
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
libavcodec/vdpau.c

index b9a07cd6ceeab84e844879cd808122c0a76f2def..04355b068268376372d26d82a70f42e115f8e060 100644 (file)
@@ -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;