[FFmpeg-trac] #3476(avformat:open): SIGABRT when stream copying mp3 containing video stream
FFmpeg
trac at avcodec.org
Tue Mar 18 02:45:38 CET 2014
#3476: SIGABRT when stream copying mp3 containing video stream
-------------------------------------+-------------------------------------
Reporter: llogan | Owner:
Type: defect | Status: open
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: mp3 | Blocked By:
regression crash abort | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* keywords: regression crash => mp3 regression crash abort
* status: new => open
* component: undetermined => avformat
* reproduced: 0 => 1
Comment:
Regression since 7546ac2
{{{
$ valgrind ./ffmpeg_g -i fate-suite/exif/embedded_small.mp3 -c copy -y
out.mp3
==28154== Memcheck, a memory error detector
==28154== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==28154== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright
info
==28154== Command: ./ffmpeg_g -i fate-suite/exif/embedded_small.mp3 -c
copy -y out.mp3
==28154==
ffmpeg version N-61566-gaa1f380 Copyright (c) 2000-2014 the FFmpeg
developers
built on Mar 18 2014 02:42:06 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 52. 67.100 / 52. 67.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 34.101 / 55. 34.101
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mp3, from 'fate-suite/exif/embedded_small.mp3':
Metadata:
title : Cuando Me Enamoro
encoded_by : Lavf52.31.0
publisher : Universal Music Latino
genre : Latin
album : Cuando Me Enamoro
album_artist : Enrique Iglesias
disc : 1/1
track : 1
composer : Enrique Iglesias
artist : Enrique Iglesias ft. Juan Luis Guerra
date : 2010
encoder : Lavf55.13.103
Duration: 00:00:00.55, start: 0.025056, bitrate: 365 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
Stream #0:1: Video: mjpeg, yuvj420p(pc), 263x263 [SAR 96:96 DAR 1:1],
90k tbr, 90k tbn, 90k tbc
Metadata:
title :
comment : Other
Output #0, mp3, to 'out.mp3':
Metadata:
TIT2 : Cuando Me Enamoro
TENC : Lavf52.31.0
TPUB : Universal Music Latino
TCON : Latin
TALB : Cuando Me Enamoro
TPE2 : Enrique Iglesias
TPOS : 1/1
TRCK : 1
TCOM : Enrique Iglesias
TPE1 : Enrique Iglesias ft. Juan Luis Guerra
TDRL : 2010
TSSE : Lavf55.34.101
Stream #0:0: Video: mjpeg, yuvj420p, 263x263 [SAR 96:96 DAR 1:1],
q=2-31, 90k tbn, 90k tbc
Metadata:
title :
comment : Other
Stream #0:1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
==28154== Invalid read of size 8
==28154== at 0x62AD78: av_free_packet (avpacket.c:275)
==28154== by 0x570EF4: mp3_write_packet (mp3enc.c:313)
==28154== by 0x58103C: write_packet (mux.c:569)
==28154== by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154== by 0x47C08B: write_frame (ffmpeg.c:658)
==28154== by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154== by 0x480951: process_input (ffmpeg.c:2043)
==28154== by 0x4680CF: main (ffmpeg.c:3390)
==28154== Address 0x74ec8c0 is 0 bytes inside a block of size 16 free'd
==28154== at 0x4C29D4E: free (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==28154== by 0xD26BAB: av_freep (mem.c:231)
==28154== by 0x62B1F3: av_packet_merge_side_data (avpacket.c:276)
==28154== by 0x580FA2: write_packet (mux.c:576)
==28154== by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154== by 0x47C08B: write_frame (ffmpeg.c:658)
==28154== by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154== by 0x480951: process_input (ffmpeg.c:2043)
==28154== by 0x4680CF: main (ffmpeg.c:3390)
==28154==
==28154== Invalid free() / delete / delete[] / realloc()
==28154== at 0x4C29D4E: free (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==28154== by 0x62AD84: av_free_packet (avpacket.c:275)
==28154== by 0x570EF4: mp3_write_packet (mp3enc.c:313)
==28154== by 0x58103C: write_packet (mux.c:569)
==28154== by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154== by 0x47C08B: write_frame (ffmpeg.c:658)
==28154== by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154== by 0x480951: process_input (ffmpeg.c:2043)
==28154== by 0x4680CF: main (ffmpeg.c:3390)
==28154== Address 0x74ec960 is 0 bytes inside a block of size 26 free'd
==28154== at 0x4C29D4E: free (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==28154== by 0x62B1E4: av_packet_merge_side_data (avpacket.c:275)
==28154== by 0x580FA2: write_packet (mux.c:576)
==28154== by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154== by 0x47C08B: write_frame (ffmpeg.c:658)
==28154== by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154== by 0x480951: process_input (ffmpeg.c:2043)
==28154== by 0x4680CF: main (ffmpeg.c:3390)
==28154==
==28154== Invalid free() / delete / delete[] / realloc()
==28154== at 0x4C29D4E: free (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==28154== by 0xD26BAB: av_freep (mem.c:231)
==28154== by 0x62AD95: av_free_packet (avpacket.c:276)
==28154== by 0x570EF4: mp3_write_packet (mp3enc.c:313)
==28154== by 0x58103C: write_packet (mux.c:569)
==28154== by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154== by 0x47C08B: write_frame (ffmpeg.c:658)
==28154== by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154== by 0x480951: process_input (ffmpeg.c:2043)
==28154== by 0x4680CF: main (ffmpeg.c:3390)
==28154== Address 0x74ec8c0 is 0 bytes inside a block of size 16 free'd
==28154== at 0x4C29D4E: free (in /usr/lib64/valgrind
/vgpreload_memcheck-amd64-linux.so)
==28154== by 0xD26BAB: av_freep (mem.c:231)
==28154== by 0x62B1F3: av_packet_merge_side_data (avpacket.c:276)
==28154== by 0x580FA2: write_packet (mux.c:576)
==28154== by 0x582C5D: av_interleaved_write_frame (mux.c:875)
==28154== by 0x47C08B: write_frame (ffmpeg.c:658)
==28154== by 0x47FB9D: do_streamcopy (ffmpeg.c:1572)
==28154== by 0x480951: process_input (ffmpeg.c:2043)
==28154== by 0x4680CF: main (ffmpeg.c:3390)
==28154==
frame= 1 fps=0.0 q=-1.0 Lsize= 25kB time=00:00:00.52 bitrate=
386.7kbits/s
video:15kB audio:9kB subtitle:0 data:0 global headers:0kB muxing overhead
3.029316%
==28154==
==28154== HEAP SUMMARY:
==28154== in use at exit: 80 bytes in 2 blocks
==28154== total heap usage: 863 allocs, 863 frees, 823,045 bytes
allocated
==28154==
==28154== LEAK SUMMARY:
==28154== definitely lost: 0 bytes in 0 blocks
==28154== indirectly lost: 0 bytes in 0 blocks
==28154== possibly lost: 0 bytes in 0 blocks
==28154== still reachable: 80 bytes in 2 blocks
==28154== suppressed: 0 bytes in 0 blocks
==28154== Rerun with --leak-check=full to see details of leaked memory
==28154==
==28154== For counts of detected and suppressed errors, rerun with: -v
==28154== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 2 from 2)
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3476#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list