summaryrefslogtreecommitdiff
path: root/omx/gstomxvideoenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'omx/gstomxvideoenc.c')
-rw-r--r--omx/gstomxvideoenc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c
index e8078aa..484bb75 100644
--- a/omx/gstomxvideoenc.c
+++ b/omx/gstomxvideoenc.c
@@ -279,6 +279,13 @@ gst_omx_video_enc_open (GstVideoEncoder * encoder)
OMX_IndexParamVideoBitrate, &bitrate_param);
if (err == OMX_ErrorNone) {
+#ifdef USE_OMX_TARGET_RPI
+ /* FIXME: Workaround for RPi returning garbage for this parameter */
+ if (bitrate_param.nVersion == 0) {
+ GST_OMX_INIT_STRUCT (&bitrate_param);
+ bitrate_param.nPortIndex = self->enc_out_port->index;
+ }
+#endif
if (self->control_rate != 0xffffffff)
bitrate_param.eControlRate = self->control_rate;
if (self->target_bitrate != 0xffffffff)