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)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 18 Feb 2011 18:52:26 +0000 (19:52 +0100)
commit09e22efc7e0d98a90e99c9c2047a203c89d9dcd9
treeb05f19b9db3ef9f4d6dca7c5c1f2ab78d1247fa4
parent34c340d49f2e6ca5190f16ced82da32561a7bef2
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.
(cherry picked from commit 2c35a6bde95a382e2d48570255deb67a7633fa46)
libavformat/rtsp.c