]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtspenc.c
Merge commit 'e205fe6831fe1b5445f7827b5c916425620b4ab5'
[ffmpeg] / libavformat / rtspenc.c
index af6f7996dce0a0f5aafafef31de4fbfb3c803fcf..12fb4102dc061cf027e9510f36564664e83535da 100644 (file)
@@ -56,7 +56,7 @@ int ff_rtsp_setup_output_streams(AVFormatContext *s, const char *addr)
 
     /* Announce the stream */
     sdp = av_mallocz(SDP_MAX_SIZE);
-    if (sdp == NULL)
+    if (!sdp)
         return AVERROR(ENOMEM);
     /* We create the SDP based on the RTSP AVFormatContext where we
      * aren't allowed to change the filename field. (We create the SDP