Displaying 2 results from an estimated 2 matches for "7df13f4".
Did you mean:
72df16f4
2007 May 29
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_tag.c player/swfplay.c
...6f9ced7820cb09446dc493778fbd8348bfcb626 (from 33ee0a567aa0a7d9b287a5285527b436ae3fe560)
Author: Benjamin Otte <otte at gnome.org>
Date: Tue May 29 15:13:03 2007 +0200
this is just INFO, since 0-frame sprites are common
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 7df13f4..10a33b6 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -254,7 +254,7 @@ tag_func_define_sprite (SwfdecSwfDecoder
/* sanity check the sprite */
if (s->parse_sprite->n_frames != s->parse_sprite->parse_frame) {
- SWFDEC_ERROR ("not enough frames in spr...
2007 May 29
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_math.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c
...mov->n_frames = movie->sprite->n_frames;
+ g_assert (movie->sprite->parse_frame > 0);
swfdec_sprite_movie_goto (mov, 0);
if (!swfdec_sprite_movie_iterate_end (mov)) {
g_assert_not_reached ();
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 4e59456..7df13f4 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -252,6 +252,13 @@ tag_func_define_sprite (SwfdecSwfDecoder
}
}
+ /* sanity check the sprite */
+ if (s->parse_sprite->n_frames != s->parse_sprite->parse_frame) {
+ SWFDEC_ERROR ("not enough frames in...