mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
gst/qtdemux/qtdemux.c: Fix parsing of esds atoms inside mp4a atoms so that we can set correct codec_info for AAC audi...
Original commit message from CVS: * gst/qtdemux/qtdemux.c: (qtdemux_parse_node): Fix parsing of esds atoms inside mp4a atoms so that we can set correct codec_info for AAC audio. Fixes #457097 along with a whole other bunch of qt/aac files.
This commit is contained in:
parent
682ecd9b67
commit
82d3eca90b
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-07-16 Wim Taymans <wim.taymans@gmail.com>
|
||||||
|
|
||||||
|
* gst/qtdemux/qtdemux.c: (qtdemux_parse_node):
|
||||||
|
Fix parsing of esds atoms inside mp4a atoms so that we can set correct
|
||||||
|
codec_info for AAC audio. Fixes #457097 along with a whole other bunch
|
||||||
|
of qt/aac files.
|
||||||
|
|
||||||
2007-07-16 Sebastian Dröge <slomo@circular-chaos.org>
|
2007-07-16 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* ext/wavpack/gstwavpackdec.c:
|
* ext/wavpack/gstwavpackdec.c:
|
||||||
|
|
|
@ -1999,6 +1999,7 @@ qtdemux_parse_node (GstQTDemux * qtdemux, GNode * node, guint8 * buffer,
|
||||||
guint32 offset;
|
guint32 offset;
|
||||||
|
|
||||||
if (length < 20) {
|
if (length < 20) {
|
||||||
|
/* small boxes are also inside wave inside the mp4a box */
|
||||||
GST_LOG_OBJECT (qtdemux, "skipping small mp4a box");
|
GST_LOG_OBJECT (qtdemux, "skipping small mp4a box");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2010,10 +2011,10 @@ qtdemux_parse_node (GstQTDemux * qtdemux, GNode * node, guint8 * buffer,
|
||||||
switch (version) {
|
switch (version) {
|
||||||
case 0x00000000:
|
case 0x00000000:
|
||||||
case 0x00010000:
|
case 0x00010000:
|
||||||
offset = 0x24;
|
offset = 0x34;
|
||||||
break;
|
break;
|
||||||
case 0x00020000:
|
case 0x00020000:
|
||||||
offset = 0x48;
|
offset = 0x58;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
GST_WARNING_OBJECT (qtdemux, "unhandled mp4a version 0x%08x",
|
GST_WARNING_OBJECT (qtdemux, "unhandled mp4a version 0x%08x",
|
||||||
|
|
Loading…
Reference in a new issue