mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
ext/lame/gstlame.c: simplify
Original commit message from CVS: * ext/lame/gstlame.c: (gst_lame_chain): simplify * ext/mad/gstmad.c: (gst_mad_handle_event): fix event leak * gst/typefind/gsttypefindfunctions.c: (mp3_type_find): be able to detect mp3 files < 4096 bytes
This commit is contained in:
parent
bb396483ac
commit
b581588127
2 changed files with 15 additions and 2 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,12 @@
|
|||
2004-05-05 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* ext/lame/gstlame.c: (gst_lame_chain):
|
||||
simplify
|
||||
* ext/mad/gstmad.c: (gst_mad_handle_event):
|
||||
fix event leak
|
||||
* gst/typefind/gsttypefindfunctions.c: (mp3_type_find):
|
||||
be able to detect mp3 files < 4096 bytes
|
||||
|
||||
2004-05-06 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* ext/theora/theoraenc.c: (gst_theora_enc_class_init),
|
||||
|
@ -102,6 +111,7 @@
|
|||
* ext/lame/gstlame.c:
|
||||
correct defaults that lame_init puts out of range
|
||||
|
||||
>>>>>>> 1.601
|
||||
2004-05-03 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* ext/divx/gstdivxenc.c: (gst_divxenc_get_type),
|
||||
|
|
|
@ -327,10 +327,13 @@ mp3_type_find (GstTypeFind * tf, gpointer unused)
|
|||
|
||||
while (skipped < GST_MP3_TYPEFIND_TRY_SYNC) {
|
||||
if (size <= 0) {
|
||||
data = gst_type_find_peek (tf, skipped, GST_MP3_TYPEFIND_SYNC_SIZE);
|
||||
size = GST_MP3_TYPEFIND_SYNC_SIZE * 2;
|
||||
do {
|
||||
size /= 2;
|
||||
data = gst_type_find_peek (tf, skipped, size);
|
||||
} while (size > 10 && !data);
|
||||
if (!data)
|
||||
break;
|
||||
size = GST_MP3_TYPEFIND_SYNC_SIZE;
|
||||
}
|
||||
if (*data == 0xFF) {
|
||||
guint8 *head_data = NULL;
|
||||
|
|
Loading…
Reference in a new issue