summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-03-31 17:10:55 +0200
committerAnton Khirnov <anton@khirnov.net>2022-07-23 11:53:19 +0200
commit4403851ca92d2eedb098a27cf91744e7e234c136 (patch)
tree81436ca00ac078e3e6ef9bd6148fea8ecfb4e32d /fftools/ffmpeg.h
parent4cd19eaffa1fba01a7e8622a0f47f210ca4e8bcf (diff)
fftools/ffmpeg: only set OutputStream.frame_number for video encoding
It is unused otherwise. Rename the field to vsync_frame_number to better reflect its current purpose.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index 58e093b2cb..6d064d3960 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -462,7 +462,8 @@ typedef struct OutputStream {
int source_index; /* InputStream index */
AVStream *st; /* stream in the output file */
int encoding_needed; /* true if encoding needed for this stream */
- int64_t frame_number;
+ /* number of frames emitted by the video-encoding sync code */
+ int64_t vsync_frame_number;
/* input pts and corresponding output pts
for A/V sync */
struct InputStream *sync_ist; /* input stream to sync against */