[vlc-commits] mediacodec: fix orientation in --no-mediacodec-dr

Alexandre Janniaux git at videolan.org
Sat Jan 30 17:56:34 UTC 2021


vlc/vlc-3.0 | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Jan 22 16:34:00 2021 +0100| [aad6ab89fe4ee0931c9d04a81e210e8b40e77d30] | committer: Alexandre Janniaux

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

Fix #25210

Cherry-picked from 8e37293767c5c00eab6fae2c3dd488c78e0d9fef.

Signed-off-by: Alexandre Janniaux <ajanni at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=aad6ab89fe4ee0931c9d04a81e210e8b40e77d30
---

 modules/codec/omxil/mediacodec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index fb0e74d92e..1affbd1c00 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/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);
     }
 



More information about the vlc-commits mailing list