OSDN Git Service

rtsp: udp_read_packet returning 0 doesn't mean success
authorMartin Storsjö <martin@martin.st>
Wed, 16 Feb 2011 12:35:47 +0000 (14:35 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 16 Feb 2011 23:37:00 +0000 (00:37 +0100)
commit2c35a6bde95a382e2d48570255deb67a7633fa46
tree9c3728797839bdbe9189acd581afc96103c423b8
parent6741f7c9be4913e084ad067571f3f29853ec5d5a
rtsp: udp_read_packet returning 0 doesn't mean success

If udp_read_packet returns 0, rtsp_st isn't set and we shouldn't
treat it as a successfully received packet (which is counted and
possibly triggers a RTCP receiver report).

This fixes issue 2612.
libavformat/rtsp.c