[FFmpeg-cvslog] r20901 - trunk/libavcodec/vaapi_mpeg4.c

gb subversion
Sun Dec 20 17:31:21 CET 2009


Author: gb
Date: Sun Dec 20 17:31:21 2009
New Revision: 20901

Log:
Add new fields for the VDPAU/MPEG-4 back-end.

Modified:
   trunk/libavcodec/vaapi_mpeg4.c

Modified: trunk/libavcodec/vaapi_mpeg4.c
==============================================================================
--- trunk/libavcodec/vaapi_mpeg4.c	Sat Dec 19 19:41:03 2009	(r20900)
+++ trunk/libavcodec/vaapi_mpeg4.c	Sun Dec 20 17:31:21 2009	(r20901)
@@ -69,6 +69,7 @@ static int vaapi_mpeg4_start_frame(AVCod
     pic_param->vol_fields.bits.quarter_sample           = s->quarter_sample;
     pic_param->vol_fields.bits.data_partitioned         = s->data_partitioning;
     pic_param->vol_fields.bits.reversible_vlc           = s->rvlc;
+    pic_param->vol_fields.bits.resync_marker_disable    = !s->resync_marker;
     pic_param->no_of_sprite_warping_points              = s->num_sprite_warping_points;
     for (i = 0; i < s->num_sprite_warping_points && i < 3; i++) {
         pic_param->sprite_trajectory_du[i]              = s->sprite_traj[i][0];
@@ -84,6 +85,7 @@ static int vaapi_mpeg4_start_frame(AVCod
     pic_param->vop_fields.bits.alternate_vertical_scan_flag = s->alternate_scan;
     pic_param->vop_fcode_forward                        = s->f_code;
     pic_param->vop_fcode_backward                       = s->b_code;
+    pic_param->vop_time_increment_resolution            = avctx->time_base.den;
     pic_param->num_macroblocks_in_gob                   = s->mb_width * ff_h263_get_gob_height(s);
     pic_param->num_gobs_in_vop                          = (s->mb_width * s->mb_height) / pic_param->num_macroblocks_in_gob;
     pic_param->TRB                                      = s->pb_time;



More information about the ffmpeg-cvslog mailing list