Commit 663dd8f4 authored by Thomas Guillem's avatar Thomas Guillem

mediacodec: fix invalid pointer aliasing

Pointed-out-by: Zhao Zhili's avatarZhao Zhili <quinkblack@foxmail.com>
parent b517819e
......@@ -441,8 +441,7 @@ static int UpdateVout(decoder_t *p_dec)
{
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_ApplyRotation(&p_dec->fmt_out.video,
&p_dec->fmt_out.video);
video_format_TransformTo(&p_dec->fmt_out.video, ORIENT_NORMAL);
}
if (decoder_UpdateVideoFormat(p_dec) != 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment