[Swfdec] 2 commits - libswfdec/swfdec_sound.c libswfdec/swfdec_text_field_movie.c

Pekka Lampila medar at kemper.freedesktop.org
Mon Oct 29 11:35:54 PDT 2007


 libswfdec/swfdec_sound.c            |    3 ++-
 libswfdec/swfdec_text_field_movie.c |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

New commits:
commit e9701f52f343abd8b24a659a694585825219aaa2
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date:   Mon Oct 29 20:34:20 2007 +0200

    Fix a stupid error I made when changing TextField code

diff --git a/libswfdec/swfdec_text_field_movie.c b/libswfdec/swfdec_text_field_movie.c
index 13c5a75..dc2cca0 100644
--- a/libswfdec/swfdec_text_field_movie.c
+++ b/libswfdec/swfdec_text_field_movie.c
@@ -308,7 +308,7 @@ swfdec_text_field_movie_get_paragraphs (SwfdecTextFieldMovie *text, int *num)
       end = strchr (p, '\0');
 
     swfdec_text_field_movie_generate_paragraph (text, &paragraph,
-	p - text->input->str, end - text->input->str);
+	p - text->input->str, end - p);
     paragraphs = g_array_append_val (paragraphs, paragraph);
 
     p = end;
commit be21f00c2fb50f5e6dd6d120e035006644f6e643
Author: Pekka Lampila <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_envelopes);
     SWFDEC_LOG ("  n_envelopes = %u", chunk->n_envelopes);
@@ -366,7 +367,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id)
     if (i > 0 && chunk->envelope[i].offset <=
 	chunk->envelope[i-1].offset) {
       /* FIXME: figure out how to handle this */
-      SWFDEC_ERROR ("sound evelope offsets not sorted");
+      SWFDEC_FIXME ("sound envelope offsets not sorted");
     }
     for (j = 0; j < 2; j++) {
       chunk->envelope[i].volume[j] = swfdec_bits_get_u16 (b);


More information about the Swfdec mailing list