Commit 8ff9e3fa authored by Steve Lhomme's avatar Steve Lhomme

avcodec: fix compilation with older libavutil

Fix for 5f48e33c67bc745af90aaa4e87240a2d6e2521a2
parent c2fe1c0a
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment