mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
aacparse: fixup comments to C-style
This commit is contained in:
parent
4a2a3a60f4
commit
4ed9e61615
1 changed files with 5 additions and 6 deletions
|
@ -261,9 +261,9 @@ gst_aacparse_sink_setcaps (GstBaseParse * parse, GstCaps * caps)
|
||||||
GST_DEBUG_OBJECT (aacparse, "setcaps: %s", caps_str);
|
GST_DEBUG_OBJECT (aacparse, "setcaps: %s", caps_str);
|
||||||
g_free (caps_str);
|
g_free (caps_str);
|
||||||
|
|
||||||
// This is needed at least in case of RTP
|
/* This is needed at least in case of RTP
|
||||||
// Parses the codec_data information to get ObjectType,
|
* Parses the codec_data information to get ObjectType,
|
||||||
// number of channels and samplerate
|
* number of channels and samplerate */
|
||||||
if (gst_structure_has_field (structure, "codec_data")) {
|
if (gst_structure_has_field (structure, "codec_data")) {
|
||||||
|
|
||||||
const GValue *value = gst_structure_get_value (structure, "codec_data");
|
const GValue *value = gst_structure_get_value (structure, "codec_data");
|
||||||
|
@ -311,7 +311,6 @@ gst_aacparse_update_duration (GstAacParse * aacparse)
|
||||||
if (!aacparse->framecount || !aacparse->frames_per_sec) {
|
if (!aacparse->framecount || !aacparse->frames_per_sec) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// info->length = (int)((filelength_filestream(file)/(((info->bitrate*8)/1024)*16))*1000);
|
|
||||||
|
|
||||||
peer = gst_pad_get_peer (parse->sinkpad);
|
peer = gst_pad_get_peer (parse->sinkpad);
|
||||||
if (peer) {
|
if (peer) {
|
||||||
|
@ -511,7 +510,7 @@ gst_aacparse_detect_stream (GstAacParse * aacparse,
|
||||||
aacparse->header_type = DSPAAC_HEADER_ADIF;
|
aacparse->header_type = DSPAAC_HEADER_ADIF;
|
||||||
aacparse->mpegversion = 4;
|
aacparse->mpegversion = 4;
|
||||||
|
|
||||||
// Skip the "ADIF" bytes
|
/* Skip the "ADIF" bytes */
|
||||||
adif = data + i + 4;
|
adif = data + i + 4;
|
||||||
|
|
||||||
/* copyright string */
|
/* copyright string */
|
||||||
|
@ -560,7 +559,7 @@ gst_aacparse_detect_stream (GstAacParse * aacparse,
|
||||||
aacparse->frames_per_sec = aacparse->sample_rate / 1024.f;
|
aacparse->frames_per_sec = aacparse->sample_rate / 1024.f;
|
||||||
GST_INFO ("ADIF fps: %f", aacparse->frames_per_sec);
|
GST_INFO ("ADIF fps: %f", aacparse->frames_per_sec);
|
||||||
|
|
||||||
// FIXME: Can we assume this?
|
/* FIXME: Can we assume this? */
|
||||||
aacparse->channels = 2;
|
aacparse->channels = 2;
|
||||||
|
|
||||||
GST_INFO ("ADIF: br=%d, samplerate=%d, objtype=%d",
|
GST_INFO ("ADIF: br=%d, samplerate=%d, objtype=%d",
|
||||||
|
|
Loading…
Reference in a new issue