[FFmpeg-devel] [PATCH] wrong time base for audio in AVI

Michael Niedermayer michaelni
Sat Apr 12 19:48:04 CEST 2008

On Sat, Apr 12, 2008 at 06:35:36PM +0200, Reimar D?ffinger wrote:
> Hello,
> currently ffplay currently fails playing e.g.
> "http://samples.mplayerhq.hu/amv/Shakira - Hips Don't Lie.amv"
> with
> > ffplay: libavformat/utils.c:640: update_initial_durations: Assertion `pkt->duration && !st->cur_dts' failed.
> This problem seems to be because the time base of the audio stream is
> set to 1/10 based on the frame rate instead of 1/sample_rate and thus
> the packet duration after av_rescale in compute_pkt_fields in
> utils.c:669 becomes 0.
> Attached patch is one possible way to fix this.

Ive not looked at the file but the patch is definitly not a fix for it.
It is just wrong, and i suspect it breaks many more files than it might

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080412/2493fe8a/attachment.pgp>

More information about the ffmpeg-devel mailing list