diff options
author | Brian Matherly <brian.matherly-at-yahoo.com@ffmpeg.org> | 2017-09-27 20:48:42 -0500 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-09-30 03:44:59 +0200 |
commit | 876dada0b58b5ecc80b2a25eb5c33974a71c8eb2 (patch) | |
tree | ad1a967902d4771b2e221235266d4802fda3cdaa /libavcodec | |
parent | 3df437c2d1950239de1e20b213e7a24b78a6825a (diff) | |
download | ffmpeg-876dada0b58b5ecc80b2a25eb5c33974a71c8eb2.tar.gz |
avcodec/hevc_sei: Support HEVC paired fields.
Correctly set the interlaced_frame and top_field_first fields when pic_struct
indicates paired fields.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/hevc_sei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c index cd55d50212..d0f9966a29 100644 --- a/libavcodec/hevc_sei.c +++ b/libavcodec/hevc_sei.c @@ -137,10 +137,10 @@ static int decode_nal_sei_pic_timing(HEVCSEIContext *s, GetBitContext *gb, const if (sps->vui.frame_field_info_present_flag) { int pic_struct = get_bits(gb, 4); h->picture_struct = AV_PICTURE_STRUCTURE_UNKNOWN; - if (pic_struct == 2) { + if (pic_struct == 2 || pic_struct == 10 || pic_struct == 12) { av_log(logctx, AV_LOG_DEBUG, "BOTTOM Field\n"); h->picture_struct = AV_PICTURE_STRUCTURE_BOTTOM_FIELD; - } else if (pic_struct == 1) { + } 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; } |