[FFmpeg-devel] [PATCH 0/1] FLV AMF metadata timestamp 24bit truncation
asilvestre
antoni.silvestrepadros at vonage.com
Fri Nov 26 18:27:17 EET 2021
We found a problem when adding AMF metadata tags to an FLV stream and we
found we were truncating the AMF timestamps to 24bits which wrap around
4 hours 40 minutes.
FLV AMF tags have a 24bit field for timestamps plus an 8bit for extended
timestamps.
All FLV AMF tags except when we write metadata handle this correctly
using the put_timestamp function.
Until now when writing metadata we were only using the first
24 bits and thus the timestamp value was wraping around 4 hours 40
minutes (16,800,000 ms, max 24 bit value 16,777,216) of playback.
This commit fixes this applying this same function put_timestamp
for the metadata FLV tag.
asilvestre (1):
libavformat/flvenc.c: avoid 24bit timestamp truncation for FLV
metadata
libavformat/flvenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.32.0
More information about the ffmpeg-devel
mailing list