Displaying 8 results from an estimated 8 matches for "swfdec_sound_parse_chunk".
2007 Oct 31
0
5 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_audio.c libswfdec/swfdec_sound.c libswfdec/swfdec_xml.c
....fi>
Date: Tue Oct 30 19:28:22 2007 +0200
Previous way of reading sound envelopes was still somewhat off, fixed
diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c
index 0e7f831..3e9da94 100644
--- a/libswfdec/swfdec_sound.c
+++ b/libswfdec/swfdec_sound.c
@@ -303,8 +303,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id)
int has_loops;
int has_out_point;
int has_in_point;
- guint i, j, n_envelopes;
- GArray *envelopes;
+ guint i, j;
SwfdecSound *sound;
SwfdecSoundChunk *chunk;
@@ -352,47 +351,29 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, Swfdec...
2007 Oct 29
0
2 commits - libswfdec/swfdec_sound.c libswfdec/swfdec_text_field_movie.c
...ampila <pekka.lampila at iki.fi>
Date: Mon Oct 29 20:21:58 2007 +0200
Add SWFDEC_FIXME about sound envelopes
diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c
index 64e22a3..2f3dec0 100644
--- a/libswfdec/swfdec_sound.c
+++ b/libswfdec/swfdec_sound.c
@@ -351,6 +351,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id)
chunk->loop_count = 1;
}
if (has_envelope) {
+ SWFDEC_FIXME ("support for sound envelopes not implemented");
chunk->n_envelopes = swfdec_bits_get_u8 (b);
chunk->envelope = g_new (SwfdecSoundEnvelope, chunk->n...
2007 Oct 31
0
2 commits - libswfdec/swfdec_sound.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie_html.c
...ila at iki.fi>
Date: Wed Oct 31 12:24:31 2007 +0200
Handle running out of bits in sound envelope parsing better
diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c
index 3e9da94..06022bc 100644
--- a/libswfdec/swfdec_sound.c
+++ b/libswfdec/swfdec_sound.c
@@ -356,7 +356,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id)
SWFDEC_LOG (" n_envelopes = %u", chunk->n_envelopes);
}
- for (i = 0; i < chunk->n_envelopes; i++) {
+ for (i = 0; i < chunk->n_envelopes && swfdec_bits_left (b); i++) {
chunk->envelope[i].offset = sw...
2007 Nov 18
0
3 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_sound.c
...mpila <pekka.lampila at iki.fi>
Date: Sun Nov 18 18:01:53 2007 +0200
In StartSound tag loop_count 0 means 1
diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c
index 4b97df5..dffe212 100644
--- a/libswfdec/swfdec_sound.c
+++ b/libswfdec/swfdec_sound.c
@@ -348,6 +348,10 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id)
}
if (has_loops) {
chunk->loop_count = swfdec_bits_get_u16 (b);
+ if (chunk->loop_count == 0) {
+ SWFDEC_ERROR ("loop_count 0 not allowed, setting to 1");
+ chunk->loop_count = 1;
+ }
SWFDEC_LOG ("...
2007 Jun 15
0
Branch 'as' - 5 commits - libswfdec/swfdec_as_native_function.c libswfdec/swfdec_edittext.c libswfdec/swfdec_edittext.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_morphshape.h
...SwfdecBits *b = &s->b;
int id;
@@ -247,7 +247,7 @@ swfdec_sound_get_decoded (SwfdecSound *s
}
int
-tag_func_sound_stream_head (SwfdecSwfDecoder * s)
+tag_func_sound_stream_head (SwfdecSwfDecoder * s, guint tag)
{
SwfdecBits *b = &s->b;
int format;
@@ -399,7 +399,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecod
}
int
-tag_func_start_sound (SwfdecSwfDecoder * s)
+tag_func_start_sound (SwfdecSwfDecoder * s, guint tag)
{
SwfdecBits *b = &s->b;
SwfdecSoundChunk *chunk;
@@ -420,7 +420,7 @@ tag_func_start_sound (SwfdecSwfDecoder *
}
int
-tag_func_define_button_sound (Swfdec...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...get_character (dec, id);
if (move) {
if (cur == NULL) {
SWFDEC_INFO ("no movie at depth %d, ignoring move command", depth);
@@ -284,7 +286,7 @@ swfdec_sprite_movie_start_sound (SwfdecMovie *movie, SwfdecBits *bits)
int id;
id = swfdec_bits_get_u16 (bits);
- chunk = swfdec_sound_parse_chunk (SWFDEC_SWF_DECODER (movie->swf->decoder), bits, id);
+ chunk = swfdec_sound_parse_chunk (SWFDEC_SWF_DECODER (movie->resource->decoder), bits, id);
if (chunk) {
SwfdecAudio *audio = swfdec_audio_event_new_from_chunk (SWFDEC_PLAYER (
SWFDEC_AS_OBJECT (movie)->context), ch...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...ne_bits;
+ guint fills_offset;
+ guint lines_offset;
+ guint n_fill_bits;
+ guint n_line_bits;
gboolean rgba;
};
diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c
index bc4ea93..f823bc1 100644
--- a/libswfdec/swfdec_sound.c
+++ b/libswfdec/swfdec_sound.c
@@ -333,7 +333,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecod
int has_loops;
int has_out_point;
int has_in_point;
- unsigned int i, j;
+ guint i, j;
SwfdecSound *sound;
SwfdecSoundChunk *chunk;
SwfdecBits *b = &s->b;
@@ -435,8 +435,8 @@ tag_func_start_sound (SwfdecSwfDecoder *
int
tag_func_define_button_sound (Swfd...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...ne_bits;
+ guint fills_offset;
+ guint lines_offset;
+ guint n_fill_bits;
+ guint n_line_bits;
gboolean rgba;
};
diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c
index bc4ea93..f823bc1 100644
--- a/libswfdec/swfdec_sound.c
+++ b/libswfdec/swfdec_sound.c
@@ -333,7 +333,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecod
int has_loops;
int has_out_point;
int has_in_point;
- unsigned int i, j;
+ guint i, j;
SwfdecSound *sound;
SwfdecSoundChunk *chunk;
SwfdecBits *b = &s->b;
@@ -435,8 +435,8 @@ tag_func_start_sound (SwfdecSwfDecoder *
int
tag_func_define_button_sound (Swfd...