projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bb8a5e6
)
aacparse: fix wrong offset of adts channel
author
aogun
<gun.ao@magewell.com>
Mon, 4 Nov 2019 09:18:30 +0000
(17:18 +0800)
committer
Tim-Philipp Müller
<tim@centricular.com>
Mon, 18 Nov 2019 10:06:27 +0000
(10:06 +0000)
gst/audioparsers/gstaacparse.c
patch
|
blob
|
history
diff --git
a/gst/audioparsers/gstaacparse.c
b/gst/audioparsers/gstaacparse.c
index
ad81a54
..
3c16755
100644
(file)
--- a/
gst/audioparsers/gstaacparse.c
+++ b/
gst/audioparsers/gstaacparse.c
@@
-1237,7
+1237,7
@@
gst_aac_parse_prepend_adts_headers (GstAacParse * aacparse,
adts_headers[0] = 0xFFU;
adts_headers[1] = 0xF0U | (id << 3) | 0x1U;
adts_headers[2] = (profile << 6) | (sampling_frequency_index << 2) | 0x2U |
- (
channel_configuration & 0x4U
);
+ (
(channel_configuration & 0x4U) >> 2
);
adts_headers[3] = ((channel_configuration & 0x3U) << 6) | 0x30U |
(guint8) (frame_size >> 11);
adts_headers[4] = (guint8) ((frame_size >> 3) & 0x00FF);