summaryrefslogtreecommitdiff
path: root/libavfilter/vf_framepack.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-09-25 15:09:21 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2017-11-28 14:56:51 -0500
commit99e9697e3a12ab4a6638a36b95edafd6a98f9eaa (patch)
tree6d25232267e3d7822aa3a1b5e080c06b96d6cce6 /libavfilter/vf_framepack.c
parent45d7be7f930cf707ead07416e10e2d0e061e99ce (diff)
stereo3d: Support view type for frame sequence type
Implement detection in h264 and hevc and insertion in framepack filter. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavfilter/vf_framepack.c')
-rw-r--r--libavfilter/vf_framepack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_framepack.c b/libavfilter/vf_framepack.c
index fd0c1897d5..64457b4501 100644
--- a/libavfilter/vf_framepack.c
+++ b/libavfilter/vf_framepack.c
@@ -310,6 +310,8 @@ static int request_frame(AVFilterLink *outlink)
if (!stereo)
return AVERROR(ENOMEM);
stereo->type = s->format;
+ stereo->view = i == LEFT ? AV_STEREO3D_VIEW_LEFT
+ : AV_STEREO3D_VIEW_RIGHT;
// filter the frame and immediately relinquish its pointer
ret = ff_filter_frame(outlink, s->input_views[i]);