[FFmpeg-devel] Fix get wrong frame rate with rm/rmvb files

Joakim Plate elupus
Wed Nov 18 02:01:17 CET 2009


Michael Niedermayer <michaelni <at> gmx.at> writes:

> 
> this likely should be get_be32() assuming this patch is correct

Yup.

There is a really nice sample on mplayerhq that shows that this is likely the 
correct method.

ftp://samples.mplayerhq.hu/MPlayer/samples/real/rockfall.rm

The 32bit value reads fps reads there as 0x1df852
which gives a nice fractional 29.97 fps with the above method.

The old location is 12 for all the samples on mplayerhq. So it's clearly not 
fps.





More information about the ffmpeg-devel mailing list