[vlc-commits] avcodec: fix flag b_multiview_left_eye
Zhao Zhili
git at videolan.org
Thu Apr 26 11:41:53 CEST 2018
vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Thu Apr 26 16:50:48 2018 +0800| [ed3b2ecc9520fe244eb55f563a9b1820ea898863] | committer: Steve Lhomme
avcodec: fix flag b_multiview_left_eye
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed3b2ecc9520fe244eb55f563a9b1820ea898863
---
modules/codec/avcodec/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 27cb05a049..a1c22c31d3 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -903,7 +903,7 @@ static int DecodeSidedata( decoder_t *p_dec, const AVFrame *frame, picture_t *p_
}
#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_pic->format.b_multiview_left_eye = (stereo_data->view == AV_STEREO3D_VIEW_LEFT);
p_dec->fmt_out.video.b_multiview_right_eye_first = p_pic->format.b_multiview_right_eye_first;
#endif
More information about the vlc-commits
mailing list