[FFmpeg-cvslog] vdpau: Fix VC-1 interlaced mode
Rainer Hochecker
git at videolan.org
Fri Jul 26 10:57:34 CEST 2013
ffmpeg | branch: master | Rainer Hochecker <fernetmenta at online.de> | Wed Jul 24 19:50:42 2013 +0300| [582963a8156522582e55466be4a59974a8d909a5] | committer: Diego Biurrun
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 at remlab.net>
Signed-off-by: Diego Biurrun <diego at biurrun.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=582963a8156522582e55466be4a59974a8d909a5
---
libavcodec/vdpau_vc1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vdpau_vc1.c b/libavcodec/vdpau_vc1.c
index 4d84cd2..57d50fb 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;
More information about the ffmpeg-cvslog
mailing list