[vlc-commits] avcodec: copy video orientation to output format
Matthias Keiser
git at videolan.org
Fri Feb 7 20:12:42 CET 2014
vlc | branch: master | Matthias Keiser <matthias at tristan-inc.com> | Thu Feb 6 16:02:37 2014 +0100| [cc4f28aa4d21b90e52f0b29d278d204ac6f2994a] | committer: Rémi Denis-Courmont
avcodec: copy video orientation to output format
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc4f28aa4d21b90e52f0b29d278d204ac6f2994a
---
modules/codec/avcodec/video.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 83c5954..4e4da03 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -363,6 +363,8 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
}
p_dec->fmt_out.i_codec = p_dec->fmt_out.video.i_chroma;
+ p_dec->fmt_out.video.orientation = p_dec->fmt_in.video.orientation;
+
#if LIBAVCODEC_VERSION_MAJOR < 54
/* Setup palette */
memset( &p_sys->palette, 0, sizeof(p_sys->palette) );
More information about the vlc-commits
mailing list