summaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_sei.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 /libavcodec/hevc_sei.c
parent45d7be7f930cf707ead07416e10e2d0e061e99ce (diff)
downloadffmpeg-streaming-99e9697e3a12ab4a6638a36b95edafd6a98f9eaa.zip
ffmpeg-streaming-99e9697e3a12ab4a6638a36b95edafd6a98f9eaa.tar.gz
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 'libavcodec/hevc_sei.c')
-rw-r--r--libavcodec/hevc_sei.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c
index 0a5d444..2bf1706 100644
--- a/libavcodec/hevc_sei.c
+++ b/libavcodec/hevc_sei.c
@@ -57,10 +57,11 @@ static int decode_nal_sei_frame_packing_arrangement(HEVCSEIFramePacking *s, GetB
s->quincunx_subsampling = get_bits1(gb);
s->content_interpretation_type = get_bits(gb, 6);
- // the following skips spatial_flipping_flag frame0_flipped_flag
- // field_views_flag current_frame_is_frame0_flag
- // frame0_self_contained_flag frame1_self_contained_flag
- skip_bits(gb, 6);
+ // spatial_flipping_flag, frame0_flipped_flag, field_views_flag
+ skip_bits(gb, 3);
+ s->current_frame_is_frame0_flag = get_bits1(gb);
+ // frame0_self_contained_flag, frame1_self_contained_flag
+ skip_bits(gb, 2);
if (!s->quincunx_subsampling && s->arrangement_type != 5)
skip_bits(gb, 16); // frame[01]_grid_position_[xy]
OpenPOWER on IntegriCloud