]> git.sesse.net Git - ffmpeg/commit
avformat/rtsp: correctly set media control uri with mpegts
authortpol <>
Sat, 10 Oct 2020 23:22:18 +0000 (19:22 -0400)
committerAndriy Gelman <andriy.gelman@gmail.com>
Mon, 18 Jan 2021 02:36:16 +0000 (21:36 -0500)
commit71ce5c32f0bfcbe053bc9110923bbe7479c358e3
tree7530ce5434f0cd71f42803b39cc92fe54a4e877e
parent41ddb27597ea7ea2aeeebb8b7f3dec55fd244b1a
avformat/rtsp: correctly set media control uri with mpegts

Fixes #1941

Currently the media control uri is not correctly assigned when mpegts is
signalled in the media description.

The code checks whether at least one AVStream has been setup before
assigning to the media's uri. With mpegts the AVStreams are setup when
parsing packets and so the media's uri is skipped. This is fixed by
using rt->nb_rtsp_streams in the check which counts all medias in the
sdp.

Reviewed-by: Andriy Gelman <andriy.gelman@gmail.com>
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
libavformat/rtsp.c