mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
aacparse: fix object_type parsing off-by-one in ADTS frame
According to http://wiki.multimedia.cx/index.php?title=ADTS, the value stored in ADTS headers is one less than the object type of the AAC stream. A look at ffmpeg shows it also adds 1 to the value read off the ADTS header. Note that this might break other things that happen to have an inverse off by one to match the existing code.
This commit is contained in:
parent
7eac4c7c03
commit
55e9338846
1 changed files with 1 additions and 1 deletions
|
@ -677,7 +677,7 @@ gst_aac_parse_parse_adts_header (GstAacParse * aacparse, const guint8 * data,
|
||||||
if (version)
|
if (version)
|
||||||
*version = (data[1] & 0x08) ? 2 : 4;
|
*version = (data[1] & 0x08) ? 2 : 4;
|
||||||
if (object)
|
if (object)
|
||||||
*object = (data[2] & 0xc0) >> 6;
|
*object = ((data[2] & 0xc0) >> 6) + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue