[FFmpeg-trac] #1888(undetermined:open): asf: huge memory allocation after seeking
FFmpeg
trac at avcodec.org
Mon Nov 5 23:10:01 CET 2012
#1888: asf: huge memory allocation after seeking
-------------------------------------+-------------------------------------
Reporter: ami_stuff | Owner:
Type: defect | Status: open
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 1
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* status: new => open
* version: unspecified => git-master
* reproduced: 0 => 1
Comment:
{{{
$ valgrind ./ffmpeg_g -ss 11 -i XFMode.ASF -f null -
==18121== Memcheck, a memory error detector
==18121== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==18121== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright
info
==18121== Command: ./ffmpeg_g -ss 11 -i XFMode.ASF -f null -
==18121==
ffmpeg version N-46455-ge859339 Copyright (c) 2000-2012 the FFmpeg
developers
built on Nov 5 2012 22:54:17 with gcc 4.7 (SUSE Linux)
configuration: --disable-indev=jack
libavutil 52. 4.100 / 52. 4.100
libavcodec 54. 71.100 / 54. 71.100
libavformat 54. 36.100 / 54. 36.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 21.106 / 3. 21.106
libswscale 2. 1.102 / 2. 1.102
libswresample 0. 16.100 / 0. 16.100
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (4068 3656 400 11759)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (573 2445 400 3018)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (2208 564 400 2772)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (712 2338 400 3050)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (1605 1354 400 2959)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (324 3274 400 3598)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (1495 1635 400 3130)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (3067 3656 400 16521)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (231 3394 400 3625)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (924 2793 400 3717)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (2024 1248 400 3272)
Input #0, asf, from 'XFMode.ASF':
Metadata:
title : (DV 0
0)
comment : DVD Recorder
Duration: 00:00:12.43, start: 0.000000, bitrate: 1018 kb/s
Stream #0:0: Video: mpeg4 (EM4A / 0x41344D45), yuv420p, 320x240, 100
tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: adpcm_g726 (E[0][0][0] / 0x0045), 8000 Hz, mono,
s16, 32 kb/s
Output #0, null, to 'pipe:':
Metadata:
title : (DV 0
0)
comment : DVD Recorder
encoder : Lavf54.36.100
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240,
q=2-31, 200 kb/s, 90k tbn, 100 tbc
Stream #0:1: Audio: pcm_s16le, 8000 Hz, mono, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 -> rawvideo)
Stream #0:1 -> #0:1 (g726 -> pcm_s16le)
Press [q] to stop, [?] for help
[asf @ 0x66b2c80] packet fragment position invalid 2704,1315 not in 0
[asf @ 0x66b2c80] packet_obj_size invalid
[asf @ 0x66b2c80] freeing incomplete packet size 0, new 400
[asf @ 0x66b2c80] packet fragment position invalid 2741,3656 not in 400
[asf @ 0x66b2c80] ff asf bad header 2c at:1279859
[asf @ 0x66b2c80] packet_replic_size 181 is invalid
[asf @ 0x66b2c80] ff asf bad header 80 at:1284855
[asf @ 0x66b2c80] packet_obj_size invalid
[asf @ 0x66b2c80] ff asf bad header 51 at:1290749
[asf @ 0x66b2c80] invalid padsize 64268 at:1290752
[asf @ 0x66b2c80] freeing incomplete packet size 400, new -634225517
[asf @ 0x66b2c80] packet fragment position invalid 2781,876 not in 0
[asf @ 0x66b2c80] packet_obj_size invalid
==18121== Warning: set address range perms: large range [0x3943e080,
0xb834df50) (undefined)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (838 3218 3875
2129723072)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (4056 657 400
2129723072)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (4713 2982 3776
2129723072)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (8489 3262 3872
2129723072)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (12361 3446 4037
2129723072)
...
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (257678 242 400
2129723072)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (257920 2976 2976
2129723072)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (260896 404 3255
2129723072)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (264151 1205 3009
2129723072)
[asf @ 0x66b2c80] ignoring invalid packet_obj_size (265356 1804 400
2129723072)
frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:01.50 bitrate=
0.0kbits/s ^M
video:0kB audio:39kB subtitle:0 global headers:0kB muxing overhead
-100.000000%
==18121== Warning: set address range perms: large range [0x3943e070,
0xb834df60) (noaccess)
==18121==
==18121== HEAP SUMMARY:
==18121== in use at exit: 0 bytes in 0 blocks
==18121== total heap usage: 2,157 allocs, 2,157 frees, 2,131,607,624
bytes allocated
==18121==
==18121== All heap blocks were freed -- no leaks are possible
==18121==
==18121== For counts of detected and suppressed errors, rerun with: -v
==18121== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1888#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list