[XviD-devel] floating point exception on decoding
Martin Kuball
MartinKuball at web.de
Sat Nov 20 13:10:52 CET 2004
Hi!
Sometimes I transcode avi files with xvid encoded videos to dvd mpeg2
format. Recently I stumbled upon some avi files that give strange
errors on decoding.
When using ffmpeg for decoding I get an error saying: header damaged.
When using xvid (after all the avi header claims to contain video
encoded with xvid) I get a floating point exception. Well, I took a
deep breath and started gdb. I was able to trace the bug to the field
DECODER.time_pp which has a value of 0. Now this is not good if you
want to use that value to divide another number with it (in function
decoder_bframe in decoder.c line 1326).
Well, I can play the avi with e.g. mplayer or xine. Don't know what
these programs use to decode the video. But they obiously manage it
without errors.
So what's going on here? What is this time_pp anyway? Should xvid
report an error? Should it guess a value if it finds 0 in time_pp?
Martin
More information about the XviD-devel
mailing list