[vlc-commits] mediacodec: fix invalid pointer aliasing
Thomas Guillem
git at videolan.org
Fri Jan 5 14:26:45 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jan 5 14:26:30 2018 +0100| [663dd8f41ddf950c2948c7b45418929940b897c7] | committer: Thomas Guillem
mediacodec: fix invalid pointer aliasing
Pointed-out-by: Zhao Zhili <quinkblack at foxmail.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=663dd8f41ddf950c2948c7b45418929940b897c7
---
modules/codec/omxil/mediacodec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 21f5961e07..40677deff2 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -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)
More information about the vlc-commits
mailing list