[FFmpeg-devel] [PATCH]Fix PAFF sample with VDPAU

Carl Eugen Hoyos cehoyos
Wed Feb 18 00:14:32 CET 2009


Hi!

Attached patch fixes (at least) playback of 
sony-hdr-cx-6-avchd-1080i-9-seconds.mts when using VDPAU.

Please comment, Carl Eugen
-------------- next part --------------
Index: libavcodec/vdpau.c
===================================================================
--- libavcodec/vdpau.c	(revision 17400)
+++ libavcodec/vdpau.c	(working copy)
@@ -151,7 +151,7 @@
     render->info.h264.field_pic_flag                         = s->picture_structure != PICT_FRAME;
     render->info.h264.bottom_field_flag                      = s->picture_structure == PICT_BOTTOM_FIELD;
     render->info.h264.num_ref_frames                         = h->sps.ref_frame_count;
-    render->info.h264.mb_adaptive_frame_field_flag           = h->sps.mb_aff;
+    render->info.h264.mb_adaptive_frame_field_flag           = h->sps.mb_aff && !render->info.h264.field_pic_flag;
     render->info.h264.constrained_intra_pred_flag            = h->pps.constrained_intra_pred;
     render->info.h264.weighted_pred_flag                     = h->pps.weighted_pred;
     render->info.h264.weighted_bipred_idc                    = h->pps.weighted_bipred_idc;



More information about the ffmpeg-devel mailing list