aacparse: Fix bitrate calculation
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 25 Mar 2010 11:48:46 +0000 (11:48 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 25 Mar 2010 15:57:48 +0000 (16:57 +0100)
commit599401a7f9d0f4fb59ba0cc2d3717dd0b863f132
tree7c0595bfe74c67c55561d2417301c2aab9b20957
parent88c1e425676745ef32cb5ccc5e9db62083e29f1f
aacparse: Fix bitrate calculation

This patch adds the get_frame_overhead() vfunc so that baseparse can
accurately calculate the min/avg/max bitrates for aacparse.

Note: The bitrate was being incorrectly calculated for ADTS streams
(it's not in the header as the code suggests).
gst/audioparsers/gstaacparse.c