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:
Vincent Penquerc'h 2013-07-15 17:15:44 +01:00
parent 7eac4c7c03
commit 55e9338846

View file

@ -677,7 +677,7 @@ gst_aac_parse_parse_adts_header (GstAacParse * aacparse, const guint8 * data,
if (version)
*version = (data[1] & 0x08) ? 2 : 4;
if (object)
*object = (data[2] & 0xc0) >> 6;
*object = ((data[2] & 0xc0) >> 6) + 1;
}
/**