mpegaudioparse: Post CBR bitrate as nominal bitrate
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 8 Feb 2011 18:20:13 +0000 (23:50 +0530)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 8 Apr 2011 17:07:16 +0000 (18:07 +0100)
commit7f4a61b56c8e6cf0b9fa0600adf6adb4cba67838
treed27cd2b937165c7e5919742932338bcbe983f840
parentcc1b5ded6defc9bfca15fd6086d996b9dc28dafd
mpegaudioparse: Post CBR bitrate as nominal bitrate

Even if VBR headers are missing, we can't guarantee that a stream is in
fact a CBR stream, so it's safer to let baseparse calculate the average
bitrate rather than assume a CBR stream. However, in order to make
/some/ metadata available before the requisite number of frames have
been parsed, this posts the bitrate from the non-VBR headers as the
nominal bitrate.

https://bugzilla.gnome.org/show_bug.cgi?id=641858
gst/audioparsers/gstmpegaudioparse.c
gst/audioparsers/gstmpegaudioparse.h