mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 05:44:43 +08:00
obs-outputs: Fix FLV file info offset
This commit is contained in:
@@ -123,7 +123,13 @@ static inline double encoder_video_codec(obs_encoder_t *encoder)
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
#define FLV_INFO_SIZE_OFFSET 42
|
||||
/*
|
||||
* This is based on the position of `duration` and `fileSize` in
|
||||
* `build_flv_meta_data` relative to the beginning of the file
|
||||
* to allow `write_file_info` to overwrite these two fields once
|
||||
* the file is finalized.
|
||||
*/
|
||||
#define FLV_INFO_SIZE_OFFSET 58
|
||||
|
||||
void write_file_info(FILE *file, int64_t duration_ms, int64_t size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user