[FFmpeg-trac] #3120(avcodec:open): Crash when converting internal SSA to SRT
FFmpeg
trac at avcodec.org
Tue Nov 12 14:48:28 CET 2013
#3120: Crash when converting internal SSA to SRT
------------------------------------+-----------------------------------
Reporter: eelco | Owner:
Type: defect | Status: open
Priority: important | Component: avcodec
Version: git-master | Resolution:
Keywords: ass crash | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Comment (by cehoyos):
{{{
$ valgrind ffmpeg_g -i 3120-ssa-2-srt-fails-001.mkv -scodec subrip -vn -an
-f null -
==2085== Memcheck, a memory error detector
==2085== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==2085== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==2085== Command: ffmpeg_g -i 3120-ssa-2-srt-fails-001.mkv -scodec subrip
-vn -an -f null -
==2085==
ffmpeg version N-58040-g6d90a5c Copyright (c) 2000-2013 the FFmpeg
developers
built on Nov 12 2013 14:42:08 with gcc 4.7 (SUSE Linux)
configuration: --disable-optimizations --disable-asm
libavutil 52. 52.100 / 52. 52.100
libavcodec 55. 41.100 / 55. 41.100
libavformat 55. 21.100 / 55. 21.100
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.102 / 3. 90.102
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
[matroska,webm @ 0x7236b80] Unknown entry 0x437E
Last message repeated 1 times
Input #0, matroska,webm, from '3120-ssa-2-srt-fails-001.mkv':
Metadata:
creation_time : 2013-11-05 16:43:47
Duration: 00:01:44.94, start: 0.000000, bitrate: 160 kb/s
Chapter #0.0: start 0.000000, end 97.918375
Metadata:
title : Intro
Chapter #0.1: start 97.918375, end 104.940000
Metadata:
title : OP
Stream #0:0(eng): Subtitle: ssa (default)
Codec 0x18000 is not in the full list.
Stream #0:1: Attachment: unknown_codec
Metadata:
filename : Comfortaa-Regular.ttf
mimetype : application/x-truetype-font
Codec 0x18000 is not in the full list.
Stream #0:2: Attachment: unknown_codec
Metadata:
filename : LT.ttf
mimetype : application/x-truetype-font
Codec 0x18000 is not in the full list.
Stream #0:3: Attachment: unknown_codec
Metadata:
filename : LTFinnegan_MediumItalic.ttf
mimetype : application/x-truetype-font
Codec 0x18000 is not in the full list.
Stream #0:4: Attachment: unknown_codec
Metadata:
filename : Cavalier.ttf
mimetype : application/x-truetype-font
Codec 0x18000 is not in the full list.
Stream #0:5: Attachment: unknown_codec
Metadata:
filename : Comfortaa-Bold.ttf
mimetype : application/x-truetype-font
Codec 0x18000 is not in the full list.
Stream #0:6: Attachment: unknown_codec
Metadata:
filename : DSFetteKanzlei.ttf
mimetype : application/x-truetype-font
Codec 0x18000 is not in the full list.
Stream #0:7: Attachment: unknown_codec
Metadata:
filename : KaiserzeitGotisch.ttf
mimetype : application/x-truetype-font
Codec 0x18000 is not in the full list.
Stream #0:8: Attachment: unknown_codec
Metadata:
filename : Mothproof_Script.ttf
mimetype : application/x-truetype-font
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf55.21.100
Chapter #0.0: start 0.000000, end 97.918375
Metadata:
title : Intro
Chapter #0.1: start 97.918375, end 104.940000
Metadata:
title : OP
Stream #0:0(eng): Subtitle: subrip (default)
Stream mapping:
Stream #0:0 -> #0:0 (ssa -> subrip)
Press [q] to stop, [?] for help
==2085== Invalid write of size 1
==2085== at 0x68C9314: _IO_default_xsputn (in /lib64/libc-2.15.so)
==2085== by 0x68991CD: vfprintf (in /lib64/libc-2.15.so)
==2085== by 0x68C50E4: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F1A6: srt_close_tag (srtenc.c:82)
==2085== by 0xA7F209: srt_stack_push_pop (srtenc.c:92)
==2085== by 0xA7F8DB: srt_end_cb (srtenc.c:223)
==2085== by 0xC856C1: ff_ass_split_override_codes (ass_split.c:461)
==2085== by 0xA7FBE6: srt_encode_frame (srtenc.c:275)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== Address 0x73e9068 is 0 bytes after a block of size 2,168 alloc'd
==2085== at 0x4C290FE: memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0xDE8161: av_malloc (mem.c:93)
==2085== by 0xDE83F1: av_mallocz (mem.c:243)
==2085== by 0x9DF3A1: avcodec_get_context_defaults3 (options.c:121)
==2085== by 0x409A88: new_output_stream (ffmpeg_opt.c:1035)
==2085== by 0x40BEED: new_subtitle_stream (ffmpeg_opt.c:1419)
==2085== by 0x40D48A: open_output_file (ffmpeg_opt.c:1767)
==2085== by 0x410314: open_files (ffmpeg_opt.c:2539)
==2085== by 0x4104A7: ffmpeg_parse_options (ffmpeg_opt.c:2583)
==2085== by 0x4202AB: main (ffmpeg.c:3422)
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C9314: _IO_default_xsputn (in /lib64/libc-2.15.so)
==2085== by 0x68990E7: vfprintf (in /lib64/libc-2.15.so)
==2085== by 0x68C50E4: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F1A6: srt_close_tag (srtenc.c:82)
==2085== by 0xA7F209: srt_stack_push_pop (srtenc.c:92)
==2085== by 0xA7F8DB: srt_end_cb (srtenc.c:223)
==2085== by 0xC856C1: ff_ass_split_override_codes (ass_split.c:461)
==2085== by 0xA7FBE6: srt_encode_frame (srtenc.c:275)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== Address 0x73e906b is 3 bytes after a block of size 2,168 alloc'd
==2085== at 0x4C290FE: memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0xDE8161: av_malloc (mem.c:93)
==2085== by 0xDE83F1: av_mallocz (mem.c:243)
==2085== by 0x9DF3A1: avcodec_get_context_defaults3 (options.c:121)
==2085== by 0x409A88: new_output_stream (ffmpeg_opt.c:1035)
==2085== by 0x40BEED: new_subtitle_stream (ffmpeg_opt.c:1419)
==2085== by 0x40D48A: open_output_file (ffmpeg_opt.c:1767)
==2085== by 0x410314: open_files (ffmpeg_opt.c:2539)
==2085== by 0x4104A7: ffmpeg_parse_options (ffmpeg_opt.c:2583)
==2085== by 0x4202AB: main (ffmpeg.c:3422)
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50F1: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F1A6: srt_close_tag (srtenc.c:82)
==2085== by 0xA7F209: srt_stack_push_pop (srtenc.c:92)
==2085== by 0xA7F8DB: srt_end_cb (srtenc.c:223)
==2085== by 0xC856C1: ff_ass_split_override_codes (ass_split.c:461)
==2085== by 0xA7FBE6: srt_encode_frame (srtenc.c:275)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== Address 0x73e906c is 4 bytes after a block of size 2,168 alloc'd
==2085== at 0x4C290FE: memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0xDE8161: av_malloc (mem.c:93)
==2085== by 0xDE83F1: av_mallocz (mem.c:243)
==2085== by 0x9DF3A1: avcodec_get_context_defaults3 (options.c:121)
==2085== by 0x409A88: new_output_stream (ffmpeg_opt.c:1035)
==2085== by 0x40BEED: new_subtitle_stream (ffmpeg_opt.c:1419)
==2085== by 0x40D48A: open_output_file (ffmpeg_opt.c:1767)
==2085== by 0x410314: open_files (ffmpeg_opt.c:2539)
==2085== by 0x4104A7: ffmpeg_parse_options (ffmpeg_opt.c:2583)
==2085== by 0x4202AB: main (ffmpeg.c:3422)
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50CE: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F1A6: srt_close_tag (srtenc.c:82)
==2085== by 0xA7F209: srt_stack_push_pop (srtenc.c:92)
==2085== by 0xA7F8DB: srt_end_cb (srtenc.c:223)
==2085== by 0xC856C1: ff_ass_split_override_codes (ass_split.c:461)
==2085== by 0xA7FBE6: srt_encode_frame (srtenc.c:275)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== Address 0x73e906c is 4 bytes after a block of size 2,168 alloc'd
==2085== at 0x4C290FE: memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0xDE8161: av_malloc (mem.c:93)
==2085== by 0xDE83F1: av_mallocz (mem.c:243)
==2085== by 0x9DF3A1: avcodec_get_context_defaults3 (options.c:121)
==2085== by 0x409A88: new_output_stream (ffmpeg_opt.c:1035)
==2085== by 0x40BEED: new_subtitle_stream (ffmpeg_opt.c:1419)
==2085== by 0x40D48A: open_output_file (ffmpeg_opt.c:1767)
==2085== by 0x410314: open_files (ffmpeg_opt.c:2539)
==2085== by 0x4104A7: ffmpeg_parse_options (ffmpeg_opt.c:2583)
==2085== by 0x4202AB: main (ffmpeg.c:3422)
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C9314: _IO_default_xsputn (in /lib64/libc-2.15.so)
==2085== by 0x6897667: vfprintf (in /lib64/libc-2.15.so)
==2085== by 0x68C50E4: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F1A6: srt_close_tag (srtenc.c:82)
==2085== by 0xA7F209: srt_stack_push_pop (srtenc.c:92)
==2085== by 0xA7F8DB: srt_end_cb (srtenc.c:223)
==2085== by 0xC856C1: ff_ass_split_override_codes (ass_split.c:461)
==2085== by 0xA7FBE6: srt_encode_frame (srtenc.c:275)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== Address 0x73e906c is 4 bytes after a block of size 2,168 alloc'd
==2085== at 0x4C290FE: memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0xDE8161: av_malloc (mem.c:93)
==2085== by 0xDE83F1: av_mallocz (mem.c:243)
==2085== by 0x9DF3A1: avcodec_get_context_defaults3 (options.c:121)
==2085== by 0x409A88: new_output_stream (ffmpeg_opt.c:1035)
==2085== by 0x40BEED: new_subtitle_stream (ffmpeg_opt.c:1419)
==2085== by 0x40D48A: open_output_file (ffmpeg_opt.c:1767)
==2085== by 0x410314: open_files (ffmpeg_opt.c:2539)
==2085== by 0x4104A7: ffmpeg_parse_options (ffmpeg_opt.c:2583)
==2085== by 0x4202AB: main (ffmpeg.c:3422)
==2085==
==2085== Invalid write of size 1
==2085== at 0x689BB10: vfprintf (in /lib64/libc-2.15.so)
==2085== by 0x68C50E4: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F1A6: srt_close_tag (srtenc.c:82)
==2085== by 0xA7F209: srt_stack_push_pop (srtenc.c:92)
==2085== by 0xA7F8DB: srt_end_cb (srtenc.c:223)
==2085== by 0xC856C1: ff_ass_split_override_codes (ass_split.c:461)
==2085== by 0xA7FBE6: srt_encode_frame (srtenc.c:275)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== Address 0x73e906e is 6 bytes after a block of size 2,168 alloc'd
==2085== at 0x4C290FE: memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0xDE8161: av_malloc (mem.c:93)
==2085== by 0xDE83F1: av_mallocz (mem.c:243)
==2085== by 0x9DF3A1: avcodec_get_context_defaults3 (options.c:121)
==2085== by 0x409A88: new_output_stream (ffmpeg_opt.c:1035)
==2085== by 0x40BEED: new_subtitle_stream (ffmpeg_opt.c:1419)
==2085== by 0x40D48A: open_output_file (ffmpeg_opt.c:1767)
==2085== by 0x410314: open_files (ffmpeg_opt.c:2539)
==2085== by 0x4104A7: ffmpeg_parse_options (ffmpeg_opt.c:2583)
==2085== by 0x4202AB: main (ffmpeg.c:3422)
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50CE: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F2ED: srt_style_apply (srtenc.c:105)
==2085== by 0xA7FBCD: srt_encode_frame (srtenc.c:274)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x73e9073 is 11 bytes after a block of size 2,168
alloc'd
==2085== at 0x4C290FE: memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0x4C291A7: posix_memalign (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0xDE8161: av_malloc (mem.c:93)
==2085== by 0xDE83F1: av_mallocz (mem.c:243)
==2085== by 0x9DF3A1: avcodec_get_context_defaults3 (options.c:121)
==2085== by 0x409A88: new_output_stream (ffmpeg_opt.c:1035)
==2085== by 0x40BEED: new_subtitle_stream (ffmpeg_opt.c:1419)
==2085== by 0x40D48A: open_output_file (ffmpeg_opt.c:1767)
==2085== by 0x410314: open_files (ffmpeg_opt.c:2539)
==2085== by 0x4104A7: ffmpeg_parse_options (ffmpeg_opt.c:2583)
==2085== by 0x4202AB: main (ffmpeg.c:3422)
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50F1: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F2ED: srt_style_apply (srtenc.c:105)
==2085== by 0xA7FBCD: srt_encode_frame (srtenc.c:274)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x73e9078 is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50CE: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F331: srt_style_apply (srtenc.c:107)
==2085== by 0xA7FBCD: srt_encode_frame (srtenc.c:274)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x73e9078 is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50F1: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F331: srt_style_apply (srtenc.c:107)
==2085== by 0xA7FBCD: srt_encode_frame (srtenc.c:274)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x73e9091 is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50CE: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F35A: srt_style_apply (srtenc.c:109)
==2085== by 0xA7FBCD: srt_encode_frame (srtenc.c:274)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x73e9091 is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C9314: _IO_default_xsputn (in /lib64/libc-2.15.so)
==2085== by 0x6899921: vfprintf (in /lib64/libc-2.15.so)
==2085== by 0x68C50E4: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F35A: srt_style_apply (srtenc.c:109)
==2085== by 0xA7FBCD: srt_encode_frame (srtenc.c:274)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== Address 0x73e9098 is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50F1: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F35A: srt_style_apply (srtenc.c:109)
==2085== by 0xA7FBCD: srt_encode_frame (srtenc.c:274)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x73e909b is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50CE: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F3B3: srt_style_apply (srtenc.c:113)
==2085== by 0xA7FBCD: srt_encode_frame (srtenc.c:274)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x73e909b is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50F1: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F3B3: srt_style_apply (srtenc.c:113)
==2085== by 0xA7FBCD: srt_encode_frame (srtenc.c:274)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x73e909c is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50CE: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F654: srt_color_cb (srtenc.c:169)
==2085== by 0xC85008: ff_ass_split_override_codes (ass_split.c:405)
==2085== by 0xA7FBE6: srt_encode_frame (srtenc.c:275)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== Address 0x73e909c is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid write of size 1
==2085== at 0xDD899B: av_strlcpy (avstring.c:86)
==2085== by 0xA7F54F: srt_text_cb (srtenc.c:147)
==2085== by 0xC8569A: ff_ass_split_override_codes (ass_split.c:459)
==2085== by 0xA7FBE6: srt_encode_frame (srtenc.c:275)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x73e90c0 is 0 bytes after a block of size 16 alloc'd
==2085== at 0x4C2ABED: malloc (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0x4C2AD6F: realloc (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==2085== by 0xDE81E2: av_realloc (mem.c:164)
==2085== by 0xDE8239: av_realloc_f (mem.c:177)
==2085== by 0x40C250: copy_chapters (ffmpeg_opt.c:1470)
==2085== by 0x40E2E9: open_output_file (ffmpeg_opt.c:1973)
==2085== by 0x410314: open_files (ffmpeg_opt.c:2539)
==2085== by 0x4104A7: ffmpeg_parse_options (ffmpeg_opt.c:2583)
==2085== by 0x4202AB: main (ffmpeg.c:3422)
==2085==
==2085== Invalid write of size 1
==2085== at 0xDD89CF: av_strlcpy (avstring.c:88)
==2085== by 0xA7F54F: srt_text_cb (srtenc.c:147)
==2085== by 0xC8569A: ff_ass_split_override_codes (ass_split.c:459)
==2085== by 0xA7FBE6: srt_encode_frame (srtenc.c:275)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x73e919a is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid write of size 1
==2085== at 0x68C50F1: vsnprintf (in /lib64/libc-2.15.so)
==2085== by 0xA7F062: srt_print (srtenc.c:52)
==2085== by 0xA7F654: srt_color_cb (srtenc.c:169)
==2085== by 0xC85008: ff_ass_split_override_codes (ass_split.c:405)
==2085== by 0xA7FBE6: srt_encode_frame (srtenc.c:275)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== Address 0x73e91e7 is not stack'd, malloc'd or (recently) free'd
==2085==
==2085== Invalid read of size 8
==2085== at 0xDE83C2: av_freep (mem.c:237)
==2085== by 0xC84ADD: free_section (ass_split.c:330)
==2085== by 0xC84BF3: ff_ass_split_dialog (ass_split.c:346)
==2085== by 0xA7F9EA: srt_encode_frame (srtenc.c:258)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085== Address 0x2062203620393646 is not stack'd, malloc'd or
(recently) free'd
==2085==
==2085==
==2085== Process terminating with default action of signal 11 (SIGSEGV)
==2085== General Protection Fault
==2085== at 0xDE83C2: av_freep (mem.c:237)
==2085== by 0xC84ADD: free_section (ass_split.c:330)
==2085== by 0xC84BF3: ff_ass_split_dialog (ass_split.c:346)
==2085== by 0xA7F9EA: srt_encode_frame (srtenc.c:258)
==2085== by 0xAC347C: avcodec_encode_subtitle (utils.c:1929)
==2085== by 0x415B3B: do_subtitle_out (ffmpeg.c:770)
==2085== by 0x41A26E: transcode_subtitles (ffmpeg.c:1808)
==2085== by 0x41A8AC: output_packet (ffmpeg.c:1892)
==2085== by 0x41F9C7: process_input (ffmpeg.c:3118)
==2085== by 0x41FD23: transcode_step (ffmpeg.c:3214)
==2085== by 0x41FE30: transcode (ffmpeg.c:3266)
==2085== by 0x420344: main (ffmpeg.c:3444)
==2085==
==2085== HEAP SUMMARY:
==2085== in use at exit: 4,247,342 bytes in 709 blocks
==2085== total heap usage: 112,497 allocs, 111,788 frees, 935,264,585
bytes allocated
==2085==
==2085== LEAK SUMMARY:
==2085== definitely lost: 901 bytes in 19 blocks
==2085== indirectly lost: 541 bytes in 20 blocks
==2085== possibly lost: 0 bytes in 0 blocks
==2085== still reachable: 4,245,900 bytes in 670 blocks
==2085== suppressed: 0 bytes in 0 blocks
==2085== Rerun with --leak-check=full to see details of leaked memory
==2085==
==2085== For counts of detected and suppressed errors, rerun with: -v
==2085== ERROR SUMMARY: 2449 errors from 20 contexts (suppressed: 2 from
2)
Segmentation fault
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3120#comment:5>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list