[FFmpeg-devel] [PATCH] fix speex sample

Baptiste Coudurier baptiste.coudurier
Thu Apr 2 21:17:18 CEST 2009


Sample testingSpeex.flv
Problem is that the code above is setting sample rate according to the
value stored, but for speex and nellymoser 8lhz sample rate is fixed and
the values stored is 0.

One possibility is the to always call set_audio_codec according to what
is stored in the packet, the function will correctly set sample rate for
speex and nellymoser 8khz. We could also special case these 2 codecs.

I checked when the "if" above was added, and it seems that was for
K70707-ARIA229.flv. I checked that with my patch, file is still detected

Btw Michael, if you want, I volunteer to maintain FLV code if it can
helps, to do cleanup, simplification, and fix bugs.

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flv_set_audio_codec.patch
Type: text/x-diff
Size: 711 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090402/bcc1b145/attachment.patch>

More information about the ffmpeg-devel mailing list