fftools/ffmpeg: attach wallclock timing information to packets and frames

Will become useful in following commits.
This commit is contained in:
Anton Khirnov
2023-11-24 19:08:15 +01:00
parent c9f38210fc
commit 9d7000b1be
6 changed files with 65 additions and 16 deletions

View File

@@ -416,6 +416,9 @@ static int frame_data_ensure(AVBufferRef **dst, int writable)
fd->dec.frame_num = UINT64_MAX;
fd->dec.pts = AV_NOPTS_VALUE;
for (unsigned i = 0; i < FF_ARRAY_ELEMS(fd->wallclock); i++)
fd->wallclock[i] = INT64_MIN;
} else if (writable)
return av_buffer_make_writable(dst);