[Pkg-gstreamer-commits] [gstreamer-vaapi] 145/176: encoder: h264: fix ip_period value in sequence parameter.

Vincent Cheng vcheng at moszumanska.debian.org
Tue Jun 3 08:09:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

vcheng pushed a commit to branch upstream
in repository gstreamer-vaapi.

commit d9cf58e88a88a44168044c5f0a5a9da9943ec523
Author: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
Date:   Tue Jan 21 17:35:24 2014 +0100

    encoder: h264: fix ip_period value in sequence parameter.
    
    The VAEncSequenceParameterBuffer.ip_period value reprents the distance
    between the I-frame and the next P-frame. So, this also accounts for
    any additional B-frame in the middle of it.
    
    This fixes rate control heuristics for certain VA drivers.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722735
---
 gst-libs/gst/vaapi/gstvaapiencoder_h264.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
index e8008f4..1fc440e 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_h264.c
@@ -1080,7 +1080,7 @@ fill_sequence (GstVaapiEncoderH264 * encoder, GstVaapiEncSequence * sequence)
   seq_param->seq_parameter_set_id = 0;
   seq_param->level_idc = encoder->level_idc;
   seq_param->intra_period = GST_VAAPI_ENCODER_KEYFRAME_PERIOD (encoder);
-  seq_param->ip_period = 0;     // ?
+  seq_param->ip_period = 1 + encoder->num_bframes;
   if (base_encoder->bitrate > 0)
     seq_param->bits_per_second = base_encoder->bitrate * 1000;
   else

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gstreamer/gstreamer-vaapi.git



More information about the Pkg-gstreamer-commits mailing list