[vlc-commits] avcodec: fix orientation overridden to 0

Thomas Guillem git at videolan.org
Fri Nov 13 18:07:09 CET 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Nov 13 18:01:45 2015 +0100| [24296b4c46587163515eeaf25b6183c230412607] | committer: Thomas Guillem

avcodec: fix orientation overridden to 0

This commit fixes a regression introduced by
adf9ce6dc626ef25ef94b8adb80e764cfbc86a50

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

 modules/codec/avcodec/video.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 8c11d94..69d6f6e 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -208,6 +208,7 @@ static int lavc_UpdateVideoFormat(decoder_t *dec, AVCodecContext *ctx,
     es_format_Clean(&dec->fmt_out);
     es_format_Init(&dec->fmt_out, VIDEO_ES, fmt_out.i_chroma);
     dec->fmt_out.video = fmt_out;
+    dec->fmt_out.video.orientation = dec->fmt_in.video.orientation;;
     return decoder_UpdateVideoFormat(dec);
 }
 



More information about the vlc-commits mailing list