Browse Source

mediacodec: fix orientation in --no-mediacodec-dr

Fix #25210

Cherry-picked from 8e37293767.

Signed-off-by: Alexandre Janniaux <ajanni@videolabs.io>
pull/135/head
Alexandre Janniaux 6 years ago
parent
commit
aad6ab89fe
  1. 2
      modules/codec/omxil/mediacodec.c

2
modules/codec/omxil/mediacodec.c

@ -453,10 +453,10 @@ static int UpdateVout(decoder_t *p_dec)
/* If MediaCodec can handle the rotation, reset the orientation to
* Normal in order to ask the vout not to rotate. */
p_dec->fmt_out.video.orientation = p_dec->fmt_in.video.orientation;
if (p_sys->video.i_angle != 0)
{
assert(p_dec->fmt_out.i_codec == VLC_CODEC_ANDROID_OPAQUE);
p_dec->fmt_out.video.orientation = p_dec->fmt_in.video.orientation;
video_format_TransformTo(&p_dec->fmt_out.video, ORIENT_NORMAL);
}

Loading…
Cancel
Save