diff options
author | Devin Heitmueller <dheitmueller@ltnglobal.com> | 2018-06-29 14:57:13 -0400 |
---|---|---|
committer | Kieran Kunhya <kierank@obe.tv> | 2018-10-23 15:46:30 +0100 |
commit | 4241e44a3c0193d182d3d614e7b4977c00c0225c (patch) | |
tree | 6162e908a5b8480a31ebd6f002c4520f529b38be /libavcodec/h264_sei.h | |
parent | 92c25963e8b68c47055b813334eaf76599936a90 (diff) | |
download | ffmpeg-4241e44a3c0193d182d3d614e7b4977c00c0225c.tar.gz |
lavc/h264: create AVFrame side data from H.264 timecodes
Create SMPTE ST 12-1 timecodes based on H.264 SEI picture timing
info.
For framerates > 30 FPS, the field flag is used in conjunction with
pairs of frames which contain the same frame timestamp in S12M.
Ensure the field is properly set per the spec.
Diffstat (limited to 'libavcodec/h264_sei.h')
-rw-r--r-- | libavcodec/h264_sei.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/h264_sei.h b/libavcodec/h264_sei.h index 5b7c8ef9d8..3b8806be0a 100644 --- a/libavcodec/h264_sei.h +++ b/libavcodec/h264_sei.h @@ -87,6 +87,15 @@ typedef struct H264SEIPictureTiming { * cpb_removal_delay in picture timing SEI message, see H.264 C.1.2 */ int cpb_removal_delay; + + /* When not continuously receiving full timecodes, we have to reference + the previous timecode received */ + int fulltc_received; + int tc_frames; + int tc_seconds; + int tc_minutes; + int tc_hours; + int tc_dropframe; } H264SEIPictureTiming; typedef struct H264SEIAFD { |