You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
fftools/ffmpeg: fix the type of limit_filesize
The option is parsed as INT64 (signed). It is also compared to the output of avio_tell(), which is also int64_t.
This commit is contained in:
@@ -148,7 +148,7 @@ typedef struct OptionsContext {
|
|||||||
|
|
||||||
int64_t recording_time;
|
int64_t recording_time;
|
||||||
int64_t stop_time;
|
int64_t stop_time;
|
||||||
uint64_t limit_filesize;
|
int64_t limit_filesize;
|
||||||
float mux_preload;
|
float mux_preload;
|
||||||
float mux_max_delay;
|
float mux_max_delay;
|
||||||
int shortest;
|
int shortest;
|
||||||
@@ -596,7 +596,7 @@ typedef struct OutputFile {
|
|||||||
int ost_index; /* index of the first stream in output_streams */
|
int ost_index; /* index of the first stream in output_streams */
|
||||||
int64_t recording_time; ///< desired length of the resulting file in microseconds == AV_TIME_BASE units
|
int64_t recording_time; ///< desired length of the resulting file in microseconds == AV_TIME_BASE units
|
||||||
int64_t start_time; ///< start time in microseconds == AV_TIME_BASE units
|
int64_t start_time; ///< start time in microseconds == AV_TIME_BASE units
|
||||||
uint64_t limit_filesize; /* filesize limit expressed in bytes */
|
int64_t limit_filesize; /* filesize limit expressed in bytes */
|
||||||
|
|
||||||
int shortest;
|
int shortest;
|
||||||
} OutputFile;
|
} OutputFile;
|
||||||
|
@@ -231,7 +231,7 @@ static void init_options(OptionsContext *o)
|
|||||||
o->start_time = AV_NOPTS_VALUE;
|
o->start_time = AV_NOPTS_VALUE;
|
||||||
o->start_time_eof = AV_NOPTS_VALUE;
|
o->start_time_eof = AV_NOPTS_VALUE;
|
||||||
o->recording_time = INT64_MAX;
|
o->recording_time = INT64_MAX;
|
||||||
o->limit_filesize = UINT64_MAX;
|
o->limit_filesize = INT64_MAX;
|
||||||
o->chapters_input_file = INT_MAX;
|
o->chapters_input_file = INT_MAX;
|
||||||
o->accurate_seek = 1;
|
o->accurate_seek = 1;
|
||||||
o->thread_queue_size = -1;
|
o->thread_queue_size = -1;
|
||||||
|
Reference in New Issue
Block a user