Commits on Source (18)
-
Rémi Denis-Courmont authored
VLC does not handle negative timestamps so far. So the initial NTP reference timestamp should be positive enough that the extrapolated PTS will not end up negative when the RTP packet timestamp is lower than the reference RTP timestamp. In that case the PTS is lower than the NTP reference. While 2^62 was a very safe value in that respect, it lead to integer overflows in the clock and in time base conversion code. To avoid this, we pick a default NTP reference value equal to the closest power of two of the NTP time of this changeset: 2^52 is in 2042 CE, 2^51 in 1971 CE.
841c1522 -
Rémi Denis-Courmont authored
This moves the function to a header for reuse. No functional changes.
ffb55802 -
Rémi Denis-Courmont authored53f36454
-
Rémi Denis-Courmont authored
All values are between 0 and 65535 here, so they fit in unsigned short.
1f86c0ab -
Rémi Denis-Courmont authored
Invert the checks for (in)valid frame headers to bail out early, reindent and remove logically dead code.
ed3db4c9 -
Rémi Denis-Courmont authoredb39b392e
-
Rémi Denis-Courmont authored
RTP audio/MPA format is mostly but not quite packetised. Do the strictly needful in the payload format handler.
b18db613 -
Rémi Denis-Courmont authored
The M bit is part of the common RTP header, but handling is entirely dependent on the payload format, so we have to pass it somehow. The pktinfo structure will probably need to be extended to also convey data from extension headers, e.g. picture orientation or (AV-1) decoding dependency data.
49d67910 -
Rémi Denis-Courmont authored
PCM and MPEG Audio have the M bit set at the start of a "talk spurt". That is IETF AVT speak for audio after a gap of silence, so flag a discontinuity.
aa12089e -
Rémi Denis-Courmont authoredfabe46b1
-
Rémi Denis-Courmont authored30d50a4e
-
Rémi Denis-Courmont authored2db75e08
-
Rémi Denis-Courmont authored250b296c
-
Rémi Denis-Courmont authored8dd5c1f2
-
Rémi Denis-Courmont authoredded65db4
-
Rémi Denis-Courmont authored
To avoid resource exhaustion DoS, make sure that the queue size cannot grow infinitely with accumulated fragments of a singke packet.
76b3ad36 -
Rémi Denis-Courmont authoredde2518b1
-
Rémi Denis-Courmont authored2ddcadde
Showing
- modules/access/rtp/mpeg12.c 296 additions, 11 deletionsmodules/access/rtp/mpeg12.c
- modules/access/rtp/pcm.c 5 additions, 1 deletionmodules/access/rtp/pcm.c
- modules/access/rtp/rtp.c 2 additions, 1 deletionmodules/access/rtp/rtp.c
- modules/access/rtp/rtp.h 114 additions, 37 deletionsmodules/access/rtp/rtp.h
- modules/access/rtp/rtpfmt.c 5 additions, 60 deletionsmodules/access/rtp/rtpfmt.c
- modules/access/rtp/session.c 7 additions, 2 deletionsmodules/access/rtp/session.c
- modules/access/rtp/xiph.c 3 additions, 1 deletionmodules/access/rtp/xiph.c
- modules/packetizer/Makefile.am 2 additions, 1 deletionmodules/packetizer/Makefile.am
- modules/packetizer/mpegaudio.c 1 addition, 130 deletionsmodules/packetizer/mpegaudio.c
- modules/packetizer/mpegaudio.h 152 additions, 0 deletionsmodules/packetizer/mpegaudio.h
- src/Makefile.am 2 additions, 1 deletionsrc/Makefile.am
- src/video_output/display.c 0 additions, 1 deletionsrc/video_output/display.c
- src/video_output/video_output.c 1 addition, 1 deletionsrc/video_output/video_output.c
- src/video_output/video_window.c 242 additions, 0 deletionssrc/video_output/video_window.c
- src/video_output/video_window.h 1 addition, 1 deletionsrc/video_output/video_window.h
- src/video_output/window.c 2 additions, 217 deletionssrc/video_output/window.c
modules/packetizer/mpegaudio.h
0 → 100644
src/video_output/video_window.c
0 → 100644