We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b6b9e5 commit 7e728faCopy full SHA for 7e728fa
1 file changed
libavcodec/omx.c
@@ -508,6 +508,15 @@ static av_cold int omx_component_init(AVCodecContext *avctx, const char *role)
508
CHECK(err);
509
s->num_out_buffers = out_port_params.nBufferCountActual;
510
511
+ // aspect ratio
512
+ OMX_CONFIG_POINTTYPE config;
513
+ INIT_STRUCT(config);
514
+ config.nPortIndex = s->out_port;
515
+ config.nX = avctx->sample_aspect_ratio.num;
516
+ config.nY = avctx->sample_aspect_ratio.den;
517
+ err = OMX_SetParameter(s->handle, 0x7f00004d, &config);
518
+ CHECK(err);
519
+
520
INIT_STRUCT(vid_param_bitrate);
521
vid_param_bitrate.nPortIndex = s->out_port;
522
vid_param_bitrate.eControlRate = OMX_Video_ControlRateVariable;
0 commit comments