diff options
author | Praveen Karadugattu <praveenkumar@outlook.com> | 2020-01-23 16:24:17 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-02-06 19:04:41 +0300 |
commit | 31d7b17c4671329a372e2762b4c5892dd0314ee5 (patch) | |
tree | cc2776bb3ebdd010d2004be7142cd9aa76547329 /libavcodec/hevc_sei.c | |
parent | 270068b5af281dae9280306b1621d1f2b7920adb (diff) |
avcodec/hevc: add support for Frame Duplication (Doubling/Tripling)
Parse picture_struct SEI value.
Diffstat (limited to 'libavcodec/hevc_sei.c')
-rw-r--r-- | libavcodec/hevc_sei.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c index 562ce8b516..60570690cf 100644 --- a/libavcodec/hevc_sei.c +++ b/libavcodec/hevc_sei.c @@ -144,6 +144,12 @@ static int decode_nal_sei_pic_timing(HEVCSEI *s, GetBitContext *gb, const HEVCPa } else if (pic_struct == 1 || pic_struct == 9 || pic_struct == 11) { av_log(logctx, AV_LOG_DEBUG, "TOP Field\n"); h->picture_struct = AV_PICTURE_STRUCTURE_TOP_FIELD; + } else if (pic_struct == 7) { + av_log(logctx, AV_LOG_DEBUG, "Frame/Field Doubling\n"); + h->picture_struct = HEVC_SEI_PIC_STRUCT_FRAME_DOUBLING; + } else if (pic_struct == 8) { + av_log(logctx, AV_LOG_DEBUG, "Frame/Field Tripling\n"); + h->picture_struct = HEVC_SEI_PIC_STRUCT_FRAME_TRIPLING; } get_bits(gb, 2); // source_scan_type get_bits(gb, 1); // duplicate_flag |