Opened 13 years ago

Closed 13 years ago

#295 closed defect (fixed)

qt-faststart segfaults after complaining of non-existent output directory

Reported by: Ricardo Bánffy Owned by: Michael Niedermayer
Priority: normal Component: undetermined
Version: 0.6.3 Keywords: qt-faststart path
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

When doing

"qt-faststart infile.mp4 ./non-existent-directory/outfile.mp4" the program crashes with a segfault after reporting the file/directory doesn't exist.

$ qt-faststart infile.mp4 ./non-existent-directory/outfile.mp4
ftyp 0 32
free 32 8
mdat 40 10084256
moov 10084296 51144

patching stco atom...
patching stco atom...

./non-existent-folder/out.mp4: No such file or directory
Segmentation fault

The message, along with the segfault, made it a bit confusing - it took me a while to figure out the problem was the missing folder.

Change History (3)

comment:1 by Ricardo Bánffy, 13 years ago

$ qt-faststart infile.mp4 ./non-existent-directory/outfile.mp4
ftyp 0 32
free 32 8
mdat 40 10084256
moov 10084296 51144

    patching stco atom...
    patching stco atom...

./non-existent-folder/out.mp4: No such file or directory
Segmentation fault

comment:2 by Stefano Sabatini, 13 years ago

Unreproducible here, with both 0.6.4 and master.

Please provide the gdb output, and/or more information regarding the build (version and platform).

comment:3 by Carl Eugen Hoyos, 13 years ago

Component: FFmpegundetermined
Reproduced by developer: set
Resolution: fixed
Status: newclosed

I can reproduce the problem, it has been fixed some time ago, both 0.7 (compatible to 0.6.3) and 0.8 contain the fix.

Note: See TracTickets for help on using tickets.