diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-22 04:47:45 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-22 04:49:04 +0200 |
commit | 28e88a24f6273969efa655102e5bc420f08535b0 (patch) | |
tree | 975e3c3f5a2f27d8349c1a70f46b7a0c84091e9b | |
parent | 00792322990188b1130ef2befd68ec1d51ab7365 (diff) | |
download | ffmpeg-28e88a24f6273969efa655102e5bc420f08535b0.tar.gz |
rtsp: fix "warning: ret may be used uninitialized in this function"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/rtsp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 780a28aa0b..bfebe40c81 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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; |