[FFmpeg-devel] [PATCH] set mp3 time base to sample rate

Michael Niedermayer michaelni
Sun Nov 22 17:29:02 CET 2009


On Sat, Nov 21, 2009 at 08:39:12PM -0800, Baptiste Coudurier wrote:
> Hi,
>
> $subject, this gives a more correct frame duration than 90000.
>
> -- 
> Baptiste COUDURIER
> Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
> FFmpeg maintainer                                  http://www.ffmpeg.org

>  mp3.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> c769680f950c344ab9336ee148333ad04db73d8a  mp3_sample_rate.patch

This is ok in principle but there are mp3 streams with some initial
broken frames that cant be detected excpet by checking future frames
(see libavcodec/mpegaudio_parser.c for example of what that needs)
these could lead to the wrong samplerate being detected

maybe simply using 1/14112000 would work?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- 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/20091122/91c249d0/attachment.pgp>



More information about the ffmpeg-devel mailing list