[FFmpeg-devel] qt-faststart
Oded Shimon
ods15
Wed May 2 19:45:03 CEST 2007
On Wed, May 02, 2007 at 07:33:10PM +0200, double wrote:
> Hi,
>
> If I compile qt-faststart ("gcc qt-faststart.c -o qt-faststart"), the
> compiled software crashes, because "qt-faststart" allocates
> memory in an infinite loop.
>
> The problem is the "ftello" function. The second parameter is
> always taken to be "0". If I cast the second argument to "off_t",
> everything is fine.
>
> Problem: fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE, SEEK_CUR);
> Fine: fseeko(infile, (off_t)(atom_size - ATOM_PREAMBLE_SIZE),
> SEEK_CUR);
>
> OS: Debian 3.1, packages taken from Ubuntu dapper. Processor: AMD
>
> Is there a reasonable explanation?
try using
gcc -D_LARGEFILE_SOURCE qt-faststart.c -o qt-faststart
or
make qt-faststart
- ods15
More information about the ffmpeg-devel
mailing list