diff options
author | Simon Thelen <ffmpeg-dev@c-14.de> | 2015-11-02 16:36:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-11-09 23:43:11 +0100 |
commit | 70fb5eadc580a82c4b977a1233d70ad0041faba0 (patch) | |
tree | f19b08db42bdefc2ae11df2aac006d9863e9100d /ffmpeg.c | |
parent | 72f9a6349cae0eba7caf9e338bee46c1d9baed27 (diff) | |
download | ffmpeg-70fb5eadc580a82c4b977a1233d70ad0041faba0.tar.gz |
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: Simon Thelen <ffmpeg-dev@c-14.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |