Commit 70fb5ead authored by Simon Thelen's avatar Simon Thelen Committed by Michael Niedermayer

ffmpeg: Don't try and write sdp info if none of the outputs had an rtp format.

Fixes a segfault when trying to write nonexistent rtp information.
Signed-off-by: 's avatarSimon Thelen <ffmpeg-dev@c-14.de>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 72f9a634
......@@ -2447,6 +2447,9 @@ static void print_sdp(void)
}
}
if (!j)
goto fail;
av_sdp_create(avc, j, sdp, sizeof(sdp));
if (!sdp_filename) {
......@@ -2462,6 +2465,7 @@ static void print_sdp(void)
}
}
fail:
av_freep(&avc);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment