[FFmpeg-cvslog] Fix vdpau vc1 interlace modes also when using decoder vc1_vdpau.

Rainer Hochecker git at videolan.org
Mon May 6 22:31:13 CEST 2013


ffmpeg | branch: master | Rainer Hochecker <fernetmenta at online.de> | Mon May  6 21:27:59 2013 +0200| [06d8fdb660fdb2ca18dffa3aa92e40d2a7909b95] | committer: Carl Eugen Hoyos

Fix vdpau vc1 interlace modes also when using decoder vc1_vdpau.

Signed-off-by: Carl Eugen Hoyos <cehoyos at ag.or.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=06d8fdb660fdb2ca18dffa3aa92e40d2a7909b95
---

 libavcodec/vdpau.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index b9a07cd..04355b0 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;



More information about the ffmpeg-cvslog mailing list