Opened 15 years ago

Last modified 13 years ago

#1337 new defect

[PATCH] -demuxer lavf and dimensions not set crash

Reported by: mennucc1@… Owned by: reimar
Priority: normal Component: demuxer
Version: HEAD Severity: normal
Keywords: Cc: compn, jojelino@…
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

hi,

the command
./mencoder -ss 8 -ovc lavc -demuxer lavf -oac copy -o /tmp/pianta.avi -of lavf /data4/tv/MIIB.mpeg
(the file is at the above URL)
dies of a division by zero; here following is the backtrace

#0 av_frac_add (f=0x8dd8270, incr=<value optimized out>) at utils.c:87
#1 0x0825cbb2 in compute_pkt_fields2 (st=0x8dd8250, pkt=0xbf9eac64)

at utils.c:2590

#2 0x0825feb8 in av_interleaved_write_frame (s=0x8ddb9d0, pkt=0xbf9eac64)

at utils.c:2688

#3 0x080ac48f in write_chunk (stream=0x8dd7990, len=384,

flags=<value optimized out>, dts=0, pts=0) at libmpdemux/muxer_lavf.c:261

#4 0x080a111c in muxer_write_chunk (s=0x8dd7990, len=0, flags=0,

dts=-9.2233720368547758e+18, pts=-9.2233720368547758e+18)
at libmpdemux/muxer.c:125

#5 0x0809b7c8 in main (argc=148732304, argv=0xbf9eaff4) at mencoder.c:1385

a simple patch avoids this problem

a.

Attachments (1)

utils.c.diff (344 bytes ) - added by mennucc1@… 15 years ago.
patch

Download all attachments as: .zip

Change History (10)

by mennucc1@…, 15 years ago

Attachment: utils.c.diff added

patch

comment:1 by mennucc1@…, 15 years ago

comment:2 by compn, 15 years ago

sample url is 404

comment:3 by mennucc1@…, 14 years ago

sorry, I deleted that sample; but the patch may be worth nonetheless

comment:4 by compn, 13 years ago

Owner: changed from r_togni@… to reimar

comment:5 by compn, 13 years ago

Cc: patriotact@… added
Summary: crash when using '-ss -demuxer lavf '[PATCH] crash when using '-ss -demuxer lavf '

comment:6 by compn, 13 years ago

Cc: jojelino@… added

comment:8 by reimar, 13 years ago

Unfortunately the patch is not a proper solution.
There should never be a 0 there, the real difficulty is figuring how it got there and fix the source of it.

comment:9 by compn, 13 years ago

Summary: [PATCH] crash when using '-ss -demuxer lavf '[PATCH] -demuxer lavf and dimensions not set crash

try mplayer demuxer over lavf ?

update title.

Note: See TracTickets for help on using tickets.