rtpdec: fix issue with conversion from unsigned to signed

Multimedia / Libav - Gilles Chanteperdrix [xenomai.org] - 21 February 2015 15:37 UTC

When receiving an RTCP packet, the difference between the last RTCP timestamp and the base timestamp may be negative. As these timestamps are of the uint32_t type, the result becomes a large integer. Cast the difference to int32_t to avoid this issue.

The result of this issue is very large start times for RTSP streams, and difficulty to restart correctly after a pause.

1ec28a6 rtpdec: fix issue with conversion from unsigned to signed
libavformat/rtpdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: git.libav.org


  • Share