rtsp: fix "warning: ret may be used uninitialized in this function"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-09-22 04:47:45 +02:00
parent 0079232299
commit 28e88a24f6
1 changed files with 3 additions and 1 deletions

View File

@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/avassert.h"
#include "libavutil/base64.h"
#include "libavutil/avstring.h"
#include "libavutil/intreadwrite.h"
@ -1793,7 +1794,8 @@ int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt)
rt->recvbuf_pos += ret;
ret = rt->recvbuf_pos < rt->recvbuf_len;
}
}
} else
av_assert0(0);
if (ret == 0) {
rt->cur_transport_priv = NULL;
return 0;