[Ffmpeg-devel] wrong stream duration and pkt.pts

Thanos Kyritsis djart
Sat Apr 29 12:07:57 CEST 2006

On Friday 28 April 2006 22:57, M?ns Rullg?rd wrote:
> Thanos Kyritsis <djart at linux.gr> writes:
> > and a partial (cut with dd) .avi file on
> > ftp://ftp.mplayerhq.hu/MPlayer/incoming/barfoo/
> Error verified.  A build I happened to have from April 1 works. 
> Could you please try to narrow it down a bit (using cvs -D)?

Of course.

2006-04-23 works fine.
2006-04-24 doesn't.

It's the change made to libavutil/mathematics.c:
revision 1.4
date: 2006/04/23 10:28:54;  author: michael;  state: Exp;  lines: +54 -6
avoid AVInteger usage in av_rescale
disable integer.* (unused)
libavutil.a 45k -> 32k

I compiled 2006-04-24 reverting only mathematics.c (and Makefile) to the 
previous revision, and duration got better (no negatives).

And I have another "challenge" :) 
Avi file wrong duration (but not crazy negatives), here:


All builds from April 1 and after (and even before) report wrong 

>>> -9223372036854775808 == AV_NOPTS_VALUE which means unknown ...
>> unknown yes, but why ?

> I guess nothing specified it.

Which means it's the avi file's fault ?
(well, it really screws time-based seeking .... :-/ )

Thanos Kyritsis <djart at linux.gr>

- What's your ONE purpose in life ?
- To explode, of course! ;-)

More information about the ffmpeg-devel mailing list