summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg.h
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2021-07-16 17:59:39 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2021-07-17 20:34:21 +0530
commitc320b78e95bab2a71a636dc4da905522c4646b35 (patch)
tree55053642cd89687b0e6072a3a83846b8219c2e60 /fftools/ffmpeg.h
parent075157ec867e0bf8d500bbbd23fee86f37eff45a (diff)
ffmpeg: add option readrate
Allows to read inputs at arbitrary rates. -re is equivalent to -readrate 1 Tested with -copyts {+ start_at_zero}, -ss, streamcopied & decoded streams.
Diffstat (limited to 'fftools/ffmpeg.h')
-rw-r--r--fftools/ffmpeg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index 3cfb4c4488..6308fb5aeb 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -119,6 +119,7 @@ typedef struct OptionsContext {
int64_t input_ts_offset;
int loop;
int rate_emu;
+ float readrate;
int accurate_seek;
int thread_queue_size;
@@ -418,6 +419,7 @@ typedef struct InputFile {
from ctx.nb_streams if new streams appear during av_read_frame() */
int nb_streams_warn; /* number of streams that the user was warned of */
int rate_emu;
+ float readrate;
int accurate_seek;
AVPacket *pkt;