0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 20:32:15 +02:00

obs-outputs: Fix FLV file info offset

This commit is contained in:
Ruwen Hahn 2023-07-13 17:02:34 +02:00 committed by Lain
parent bdd7d9cf53
commit dcd1bd9a80

View File

@ -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)
{