[FFmpeg-cvslog] rtsp: fix "warning: ret may be used uninitialized in this function"
Michael Niedermayer
git at videolan.org
Sat Sep 22 04:57:33 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep 22 04:47:45 2012 +0200| [28e88a24f6273969efa655102e5bc420f08535b0] | committer: Michael Niedermayer
rtsp: fix "warning: ret may be used uninitialized in this function"
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=28e88a24f6273969efa655102e5bc420f08535b0
---
libavformat/rtsp.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 780a28a..bfebe40 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;
More information about the ffmpeg-cvslog
mailing list