X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtspenc.c;h=12fb4102dc061cf027e9510f36564664e83535da;hb=f9aadf1fc426412e94c06f5d34516c8dba73cd6a;hp=af6f7996dce0a0f5aafafef31de4fbfb3c803fcf;hpb=edd0dc854d45229f48504dea3482759b0ca92d54;p=ffmpeg diff --git a/libavformat/rtspenc.c b/libavformat/rtspenc.c index af6f7996dce..12fb4102dc0 100644 --- a/libavformat/rtspenc.c +++ b/libavformat/rtspenc.c @@ -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