mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
set correct buffer durations in mp3parse, set default_duration in matroskamux for mpeg1 audio
Original commit message from CVS: set correct buffer durations in mp3parse, set default_duration in matroskamux for mpeg1 audio
This commit is contained in:
parent
cffd87dc29
commit
a9d5e7b74f
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-12-06 Arwed v. Merkatz <v.merkatz@gmx.net>
|
||||
|
||||
* gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_chain):
|
||||
set BUFFER_DURATION to correct values (mpeg1 audio frame length is fixed)
|
||||
* gst/matroska/matroska-mux.c: (gst_matroska_mux_audio_pad_link):
|
||||
set default_duration for mpeg1 audio
|
||||
|
||||
2004-12-06 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* ext/alsa/gstalsa.c: (gst_alsa_get_caps), (gst_alsa_close_audio):
|
||||
|
|
|
@ -526,12 +526,18 @@ gst_matroska_mux_audio_pad_link (GstPad * pad, const GstCaps * caps)
|
|||
switch (layer) {
|
||||
case 1:
|
||||
context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_AUDIO_MPEG1_L1);
|
||||
context->default_duration =
|
||||
384 * GST_SECOND / audiocontext->samplerate;
|
||||
break;
|
||||
case 2:
|
||||
context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_AUDIO_MPEG1_L2);
|
||||
context->default_duration =
|
||||
1152 * GST_SECOND / audiocontext->samplerate;
|
||||
break;
|
||||
case 3:
|
||||
context->codec_id = g_strdup (GST_MATROSKA_CODEC_ID_AUDIO_MPEG1_L3);
|
||||
context->default_duration =
|
||||
1152 * GST_SECOND / audiocontext->samplerate;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue