[FFmpeg-devel] [PATCH] avformat/rtpdec: fix integer overflow in start_time_realtime calculation

Anton Khirnov anton at khirnov.net
Mon Sep 23 08:08:17 EEST 2024


Quoting jon at jonb.org (2024-09-04 10:06:15)
> From: Jonathan Baudanza <jon at jonb.org>
> 
> I encountered this problem with NTP timestamps that are extremely old,
> like from January, 1990.
> 
> Although RFC3550 suggests that the timestamps in the RTCP packets use
> the actual wallclock, some implementations use other clocks, such as
> the CLOCK_MONOTONIC on linux.
> 
> I'm my case, I'm dealing with packets from mediasoup.
> 
> Without this patch, start_time_realtime shows up in the distance future
> instead of around Jan 1900.
> ---
>  libavformat/rtsp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Will push soonish if nobody objects.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list