OSDN Git Service

amr: Set the codec->bit_rate field based on the last packet
authorMartin Storsjö <martin@martin.st>
Wed, 9 Feb 2011 10:13:32 +0000 (12:13 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 21 Mar 2011 20:31:33 +0000 (21:31 +0100)
commit2890cba8b50cc8c6656bc5f5cd0ebb5fd80fb5e4
tree6a0a6c0ac3ea5915b5966c0ab11ad67e783a621c
parent895678f8239213db1d074a39653fcd78bdf87c25
amr: Set the codec->bit_rate field based on the last packet

This allows libavformat to guess an estimated duration for
amr files.

For streams with varying bit rates (or with silence descriptors
or "no frame" blocks) the guess is, of course, inaccurate.
libavformat/amr.c