summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-06-07 11:10:49 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-06-07 12:43:55 +0200
commit035efded759e181ec8591fc360758530bb757446 (patch)
treedd8019091d3703bc06d6565cfc13d8aa5e436583 /gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
parent4bf8ef724b9313529a7c4c70eb6595dfcdf5811e (diff)
libs: encoder: h264,h265,mpeg2,vp8,vp9: refactor framerate param
Since the framerate VA parameter is calculated equally among all the encoders, it is better to handle it in the base encoder class.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
index 798c00f0..2c284ee4 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
@@ -473,12 +473,6 @@ ensure_control_rate_params (GstVaapiEncoderMpeg2 * encoder)
.buffer_size = base_encoder->bitrate * 1000 * 8,
.initial_buffer_fullness = base_encoder->bitrate * 1000 * 4,
};
-
- /* FrameRate params */
- GST_VAAPI_ENCODER_VA_FRAME_RATE (encoder) = (VAEncMiscParameterFrameRate) {
- .framerate = (guint) GST_VAAPI_ENCODER_FPS_D (encoder) << 16 |
- GST_VAAPI_ENCODER_FPS_N (encoder),
- };
/* *INDENT-ON* */
return TRUE;