[vlc-commits] avcodec: fix compilation with older libavutil
Steve Lhomme
git at videolan.org
Thu Apr 26 09:28:09 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr 26 09:05:06 2018 +0200| [8ff9e3faa3dcac620c6f64eeae268ce7b68a3ad0] | committer: Steve Lhomme
avcodec: fix compilation with older libavutil
Fix for 5f48e33c67bc745af90aaa4e87240a2d6e2521a2
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8ff9e3faa3dcac620c6f64eeae268ce7b68a3ad0
---
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 e10fcf372b..27cb05a049 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -901,10 +901,12 @@ static int DecodeSidedata( decoder_t *p_dec, const AVFrame *frame, picture_t *p_
p_pic->format.multiview_mode = MULTIVIEW_2D;
break;
}
+#if LIBAVUTIL_VERSION_CHECK( 56, 7, 0, 4, 100 )
p_pic->format.b_multiview_right_eye_first = stereo_data->flags & AV_STEREO3D_FLAG_INVERT;
p_pic->format.b_multiview_left_eye = stereo_data->flags & AV_STEREO3D_VIEW_LEFT;
p_dec->fmt_out.video.b_multiview_right_eye_first = p_pic->format.b_multiview_right_eye_first;
+#endif
if (p_dec->fmt_out.video.multiview_mode != p_pic->format.multiview_mode)
{
More information about the vlc-commits
mailing list