GNOME Bugzilla – Bug 623654
qtdemux: Fix order of bitrates in 'btrt' atom
Last modified: 2010-07-06 09:35:08 UTC
I got this wrong. :/ Attaching a fix.
Created attachment 165329 [details] [review] qtdemux: Fix order of bitrates in 'btrt' atom There seems to be a bug in libmp4v2 that generates a MPEG4BitRateBox as (bufferSizeDB, avgBitrate, maxBitrate) instead of (bufferSizeDB, maxBitrate, avgBitrate), according to the spec. I used the mp4file output while writing this code, so the order is wrong. This patches fixes that.
Created attachment 165337 [details] [review] qtdemux: Fix order of bitrates in 'btrt' atom There seems to be a bug in libmp4v2 that generates a MPEG4BitRateBox as (bufferSizeDB, avgBitrate, maxBitrate) instead of (bufferSizeDB, maxBitrate, avgBitrate), according to the spec. I used the mp4file output while writing this code, so the order is wrong. This patches fixes that.
Attaching updated patch to handle bad muxers which write the avg. and max. bitrates swapped.
Committed, thanks (with minor style changes): commit 8aed3176ce65a1963d1b2bea8b9ed110714ca4e2 Author: Arun Raghavan <arun.raghavan@collabora.co.uk> Date: Tue Jul 6 13:21:19 2010 +0530 qtdemux: Fix order of bitrates in 'btrt' atom There seems to be a bug in libmp4v2 that generates a MPEG4BitRateBox as (bufferSizeDB, avgBitrate, maxBitrate) instead of (bufferSizeDB, maxBitrate, avgBitrate), according to the spec. I used the mp4file output while writing this code, so the order is wrong. This patches fixes that. https://bugzilla.gnome.org/show_bug.cgi?id=623654