[FFmpeg-cvslog] avformat/rtsp: remove redundant assignment

Limin Wang git at videolan.org
Tue Dec 7 15:02:48 EET 2021


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Sun Dec  5 21:12:28 2021 +0800| [130e4c6f4c3a7daeaeee4d195c1122f21fbc95c7] | committer: Limin Wang

avformat/rtsp: remove redundant assignment

Reviewed-by: Martin Storsjö <martin at martin.st>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=130e4c6f4c3a7daeaeee4d195c1122f21fbc95c7
---

 libavformat/rtsp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index deaed34db4..47120fdf61 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1178,8 +1178,8 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
     char buf[MAX_URL_SIZE], buf1[MAX_URL_SIZE], *q;
     unsigned char ch;
     const char *p;
-    int ret, content_length, line_count = 0, request = 0;
-    unsigned char *content = NULL;
+    int ret, content_length, line_count, request;
+    unsigned char *content;
 
 start:
     line_count = 0;



More information about the ffmpeg-cvslog mailing list