fix vdpau vc1 interlace modes
authorRainer Hochecker <fernetmenta@online.de>
Sun, 5 May 2013 13:12:59 +0000 (15:12 +0200)
committerRainer Hochecker <fernetmenta@online.de>
Sun, 5 May 2013 13:12:59 +0000 (15:12 +0200)
libavcodec/vdpau_vc1.c

index f5da9bb..993ef26 100644 (file)
@@ -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;