On Thu, Mar 16, 2017 at 08:31:34PM +0800, Steven Liu wrote: > use the option set by user > > Reported-by: Lancelot Lai <laih...@gmail.com> > Signed-off-by: Steven Liu <l...@chinaffmpeg.org> > --- > libavformat/rtmpproto.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-)
This causes rtmp to segfault: example: ./ffmpeg_g -rtmp_live 0 -i rtmp://127.0.0.1 file.avi [tcp @ 0x20f0b80] Connection to tcp://127.0.0.1:1935 failed: Connection refused [rtmp @ 0x20f0420] Cannot open connection tcp://127.0.0.1:1935 Program received signal SIGSEGV, Segmentation fault. 0x00000000010ffd03 in av_dict_get () (gdb) bt #0 0x00000000010ffd03 in av_dict_get () #1 0x00000000010fff6a in av_dict_set () #2 0x0000000000630976 in ffurl_connect () #3 0x0000000000631286 in ffurl_open_whitelist () #4 0x00000000006354c5 in ffio_open_whitelist () #5 0x00000000006eb2b1 in io_open_default () #6 0x00000000007460ed in avformat_open_input () #7 0x00000000004b051b in open_input_file () #8 0x00000000004ade9c in open_files.isra () #9 0x00000000004b564c in ffmpeg_parse_options () #10 0x00000000004a5a1e in main () [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Rewriting code that is poorly written but fully understood is good. Rewriting code that one doesnt understand is a sign that one is less smart then the original author, trying to rewrite it will not make it better.
signature.asc
Description: Digital signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel