[FFmpeg-trac] #1631(avcodec:open): paf_video crash
FFmpeg
trac at avcodec.org
Sat Aug 11 15:00:26 CEST 2012
#1631: paf_video crash
------------------------------------+-----------------------------------
Reporter: ami_stuff | Owner:
Type: defect | Status: open
Priority: important | Component: avcodec
Version: git-master | Resolution:
Keywords: paf_video | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
------------------------------------+-----------------------------------
Changes (by cehoyos):
* component: undetermined => avcodec
Comment:
{{{
$ valgrind ffmpeg_g -vcodec paf_video -i i263.avi -an -f null -
==19521== Memcheck, a memory error detector
==19521== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==19521== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright
info
==19521== Command: ffmpeg_g -vcodec paf_video -i i263.avi -an -f null -
==19521==
ffmpeg version N-43451-g48d20b9 Copyright (c) 2000-2012 the FFmpeg
developers
built on Aug 11 2012 14:43:15 with gcc 4.6.1 (GCC)
configuration: --cc='/usr/local/gcc-4.6.1/bin/gcc -m32' --disable-
optimizations
libavutil 51. 67.100 / 51. 67.100
libavcodec 54. 51.100 / 54. 51.100
libavformat 54. 23.100 / 54. 23.100
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 7.100 / 3. 7.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
Input #0, avi, from 'i263.avi':
Duration: 00:00:06.67, start: 0.000000, bitrate: 407 kb/s
Stream #0:0: Video: paf_video (I263 / 0x33363249), pal8, 352x240,
29.97 tbr, 29.97 tbn, 29.97 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 22050 Hz, mono, s16, 32
kb/s
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf54.23.100
Stream #0:0: Video: rawvideo, pal8, 352x240, q=2-31, 200 kb/s, 90k
tbn, 29.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (paf_video -> rawvideo)
Press [q] to stop, [?] for help
Error while decoding stream #0:0: Invalid data found when processing input
==19521== Invalid write of size 4
==19521== at 0x84AFB63: copy_block4 (dsputil.h:695)
==19521== by 0x84B02E0: decode_0 (paf.c:176)
==19521== by 0x84B0D28: paf_vid_decode (paf.c:299)
==19521== by 0x856836B: avcodec_decode_video2 (utils.c:1509)
==19521== by 0x805B33A: decode_video (ffmpeg.c:1549)
==19521== by 0x805C04A: output_packet (ffmpeg.c:1734)
==19521== by 0x8060554: process_input (ffmpeg.c:2858)
==19521== by 0x80606D6: transcode (ffmpeg.c:2916)
==19521== by 0x8060C38: main (ffmpeg.c:3098)
==19521== Address 0x520c240 is 0 bytes after a block of size 90,112
alloc'd
==19521== at 0x4CA8E9E: memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==19521== by 0x4CA8EFB: posix_memalign (in
/usr/lib64/valgrind/vgpreload_memcheck-x86-linux.so)
==19521== by 0x87F2830: av_malloc (mem.c:95)
==19521== by 0x87F294A: av_mallocz (mem.c:199)
==19521== by 0x84AFC40: paf_vid_init (paf.c:76)
==19521== by 0x8566A8F: avcodec_open2 (utils.c:961)
==19521== by 0x805C7FA: init_input_stream (ffmpeg.c:1851)
==19521== by 0x805E148: transcode_init (ffmpeg.c:2255)
==19521== by 0x8060628: transcode (ffmpeg.c:2887)
==19521== by 0x8060C38: main (ffmpeg.c:3098)
==19521==
Last message repeated 199 times
frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate=
0.0kbits/s
video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead nan%
Output file is empty, nothing was encoded (check -ss / -t / -frames
parameters if used)
==19521==
==19521== HEAP SUMMARY:
==19521== in use at exit: 0 bytes in 0 blocks
==19521== total heap usage: 1,773 allocs, 1,773 frees, 2,497,201 bytes
allocated
==19521==
==19521== All heap blocks were freed -- no leaks are possible
==19521==
==19521== For counts of detected and suppressed errors, rerun with: -v
==19521== ERROR SUMMARY: 1600 errors from 1 contexts (suppressed: 3 from
3)
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1631#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list