diff options
| author | dec05eba <dec05eba@protonmail.com> | 2026-04-21 18:12:41 +0200 |
|---|---|---|
| committer | dec05eba <dec05eba@protonmail.com> | 2026-04-21 18:16:06 +0200 |
| commit | 1e1da80d7435701d7dd33595ba89ac8b2ee304ee (patch) | |
| tree | 6e754023f58978f906c554cfdf62cca6b212f67a /include/encoder | |
| parent | 9a6b345bacbe6d5d930f6dcf20b0fd07136952f6 (diff) | |
Make sure the first frame is pts 0
Diffstat (limited to 'include/encoder')
| -rw-r--r-- | include/encoder/encoder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/encoder/encoder.h b/include/encoder/encoder.h index 7a808cc..b46deb5 100644 --- a/include/encoder/encoder.h +++ b/include/encoder/encoder.h @@ -19,6 +19,7 @@ typedef struct { AVFormatContext *format_context; AVStream *stream; int64_t start_pts; + int64_t first_pts; bool has_received_keyframe; char *first_frame_ts_filepath; bool first_frame_ts_written; @@ -26,6 +27,7 @@ typedef struct { typedef struct { gsr_replay_buffer *replay_buffer; + int64_t first_pts; pthread_mutex_t file_write_mutex; bool file_write_mutex_created; |
