ffmpeg | branch: release/2.6 | Simon Thelen <ffmpeg-...@c-14.de> | Mon Nov 2 16:36:16 2015 +0100| [c3467bbc5250c5b9f35a5e174dcbbdb2eac50706] | committer: 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: Simon Thelen <ffmpeg-...@c-14.de> Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> (cherry picked from commit 70fb5eadc580a82c4b977a1233d70ad0041faba0) Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3467bbc5250c5b9f35a5e174dcbbdb2eac50706 --- ffmpeg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index b0cf429..8fb26c2 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2337,6 +2337,9 @@ static void print_sdp(void) } } + if (!j) + goto fail; + av_sdp_create(avc, j, sdp, sizeof(sdp)); if (!sdp_filename) { @@ -2352,6 +2355,7 @@ static void print_sdp(void) } } +fail: av_freep(&avc); } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog