diff options
author | James Almer <jamrial@gmail.com> | 2017-11-29 21:06:49 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-11-29 21:06:49 -0300 |
commit | d268094f889479a8edee43d8c847da8838b8bf0f (patch) | |
tree | c18f40311df91539300d2b269a628761dbe0c12d /libavcodec/h264_slice.c | |
parent | eb01ac6c75b5b42a9d50d405248cb3315ccb3965 (diff) | |
parent | 99e9697e3a12ab4a6638a36b95edafd6a98f9eaa (diff) | |
download | ffmpeg-d268094f889479a8edee43d8c847da8838b8bf0f.tar.gz |
Merge commit '99e9697e3a12ab4a6638a36b95edafd6a98f9eaa'
* commit '99e9697e3a12ab4a6638a36b95edafd6a98f9eaa':
stereo3d: Support view type for frame sequence type
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r-- | libavcodec/h264_slice.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index da76b9293f..fff3112649 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -1233,6 +1233,13 @@ static int h264_export_frame_props(H264Context *h) if (fp->content_interpretation_type == 2) stereo->flags = AV_STEREO3D_FLAG_INVERT; + + if (fp->frame_packing_arrangement_type == 5) { + if (fp->current_frame_is_frame0_flag) + stereo->view = AV_STEREO3D_VIEW_LEFT; + else + stereo->view = AV_STEREO3D_VIEW_RIGHT; + } } } |