Displaying 18 results from an estimated 18 matches for "tag_func_define_sprit".
Did you mean:
tag_func_define_sprite
2008 Jun 30
5
[Bug 16567] New: A flash file does not work (SWFDEC: ERROR: swfdec_tag.c( 238): tag_func_define_sprite: data after last frame)
http://bugs.freedesktop.org/show_bug.cgi?id=16567
Summary: A flash file does not work (SWFDEC: ERROR:
swfdec_tag.c(238): tag_func_define_sprite: data after
last frame)
Product: swfdec
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: library
AssignedTo: swfdec at lists.fre...
2008 Sep 30
1
gstreamer error
...ng with swfdec and it looks pretty awesome so
far. So, many thanks for your efforts guys!
But when running swfplay on a swf-file containing videos, e.g.
swfdec-flash-and-gnome.swf, the video doesn't play and I get some errors
regarding GStreamer:
<snip>
SWFDEC: ERROR: swfdec_tag.c(238): tag_func_define_sprite: data after last frame
SWFDEC: ERROR: swfdec_tag.c(238): tag_func_define_sprite: data after last frame
SWFDEC: ERROR: swfdec_tag.c(238): tag_func_define_sprite: data after last frame
SWFDEC: ERROR: swfdec_sprite_movie.c(458):
swfdec_sprite_movie_perform_one_action: cannot export id 65533 as GStrea...
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
...SwfDecoder * s, guint tag)
{
guint depth;
diff --git a/libswfdec/swfdec_sprite.h b/libswfdec/swfdec_sprite.h
index b9d62db..661be2b 100644
--- a/libswfdec/swfdec_sprite.h
+++ b/libswfdec/swfdec_sprite.h
@@ -85,7 +85,7 @@ struct _SwfdecSpriteClass
GType swfdec_sprite_get_type (void);
-int tag_func_define_sprite (SwfdecSwfDecoder * s);
+int tag_func_define_sprite (SwfdecSwfDecoder * s, guint tag);
void swfdec_sprite_add_sound_chunk (SwfdecSprite * sprite, guint frame,
SwfdecBuffer * chunk, int skip, guint n_samples);
void swfdec_sprite_set_n_frames (SwfdecSprite *sprite, guint n_frames, guint rate)...
2007 Feb 15
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_shape.c libswfdec/swfdec_tag.c
...d cause crashes. This patch updates it to use the
"new" functions.
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index e7c8aa8..f4497f2 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -190,35 +190,30 @@ tag_func_define_text_2 (SwfdecSwfDecoder
int
tag_func_define_sprite (SwfdecSwfDecoder * s)
{
- SwfdecBits *bits = &s->b;
SwfdecBits parse;
int id;
SwfdecSprite *sprite;
int ret;
- SwfdecBits save_bits;
+ guint tag;
- save_bits = s->b;
+ parse = s->b;
- id = swfdec_bits_get_u16 (bits);
+ id = swfdec_bits_get_u16 (&parse);...
2007 Apr 20
0
8 commits - libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_root_sprite.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c NEWS test/parse.c
...}
+ } else {
+ ret = SWFDEC_STATE_EOF;
+ SWFDEC_ERROR ("data after last frame");
}
if (tag == 0) {
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 0d0eeb8..6000d45 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -195,7 +195,7 @@ tag_func_define_sprite (SwfdecSwfDecoder
int id;
SwfdecSprite *sprite;
int ret;
- guint tag;
+ guint tag = 1;
parse = s->b;
@@ -209,7 +209,7 @@ tag_func_define_sprite (SwfdecSwfDecoder
swfdec_sprite_set_n_frames (sprite, swfdec_bits_get_u16 (&parse), SWFDEC_DECODER (s)->rate);
s->p...
2007 Mar 28
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_sprite.c libswfdec/swfdec_tag.c
...,
swfdec_bits_left (&action_bits));
}
- swfdec_buffer_unref (buffer);
}
g_free (script_name);
}
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 255f6c3..edec808 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -212,7 +212,6 @@ tag_func_define_sprite (SwfdecSwfDecoder
do {
int x;
guint tag_len;
- SwfdecBuffer *buffer;
SwfdecTagFunc *func;
x = swfdec_bits_get_u16 (&parse);
@@ -226,16 +225,9 @@ tag_func_define_sprite (SwfdecSwfDecoder
swfdec_swf_decoder_get_tag_name (tag), tag_len);
if (tag_len ==...
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
...- }
- }
- }
+ if (has_filter)
+ swfdec_filters_parse (bits);
if (has_blend_mode) {
/* FIXME: implement */
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index b6acf1b..a556e19 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -252,6 +252,67 @@ tag_func_define_sprite (SwfdecSwfDecoder
return SWFDEC_STATUS_OK;
}
+void
+swfdec_filters_parse (SwfdecBits *bits)
+{
+ guint i, n_filters, filter_id;
+ n_filters = swfdec_bits_get_u8 (bits);
+ SWFDEC_WARNING (" filters: %u", n_filters);
+ for (i = 0; i < n_filters && swfdec_bits_left (bi...
2007 Jan 18
0
Branch 'interpreter' - 4 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c
...= SWFDEC_STATUS_OK;
- unsigned char *endptr;
+ const unsigned char *endptr;
SwfdecBuffer *buffer;
s->b = s->parse;
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 4f57b1a..3896101 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -212,7 +212,6 @@ tag_func_define_sprite (SwfdecSwfDecoder
s->parse_sprite = sprite;
while (1) {
- unsigned char *endptr;
int x;
int tag;
guint tag_len;
@@ -258,7 +257,7 @@ tag_func_define_sprite (SwfdecSwfDecoder
SWFDEC_ERROR ("invalid tag %d %s during DefineSprite",
tag, swfdec_s...
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
...in 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 sprite %u (have %u, want %u), filling up with empty frames",
+ SWFDEC_INFO ("not enough frames in sprite %...
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
...ame > 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 sprite %u (have %u, want %u), filling up with empty frames",
+ id, s->parse_sprite->parse_frame,...
2007 Jun 18
0
Branch 'as' - 8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_sprite_movie.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h
...ite */
SwfdecScript * init_action; /* action to run when initializing this sprite */
+ GArray * actions; /* SwfdecSpriteAction in execution order */
/* parse state */
guint parse_frame; /* frame we're currently parsing. == n_frames if done parsing */
@@ -89,20 +85,20 @@ int tag_func_define_sprite (SwfdecSwfDec
void swfdec_sprite_add_sound_chunk (SwfdecSprite * sprite, guint frame,
SwfdecBuffer * chunk, int skip, guint n_samples);
void swfdec_sprite_set_n_frames (SwfdecSprite *sprite, guint n_frames, guint rate);
-void swfdec_sprite_add_action (SwfdecSprite * sprite,
- SwfdecSprit...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
..._action (s->parse_sprite, SWFDEC_SPRITE_ACTION_REMOVE, GINT_TO_POINTER (depth));
return SWFDEC_STATUS_OK;
}
diff --git a/libswfdec/swfdec_sprite.h b/libswfdec/swfdec_sprite.h
index e4c7467..d0e3bb8 100644
--- a/libswfdec/swfdec_sprite.h
+++ b/libswfdec/swfdec_sprite.h
@@ -89,7 +89,7 @@ int tag_func_define_sprite (SwfdecSwfDec
void swfdec_sprite_add_sound_chunk (SwfdecSprite * sprite, unsigned int frame,
SwfdecBuffer * chunk, int skip, unsigned int n_samples);
void swfdec_sprite_set_n_frames (SwfdecSprite *sprite, unsigned int n_frames, unsigned int rate);
-void swfdec_sprite_add_action (SwfdecSprit...
2007 Aug 13
0
Branch 'vivi' - 24 commits - configure.ac libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h vivified/core vivified/dock vivified/ui
...- }
- }
- }
+ if (has_filter)
+ swfdec_filters_parse (bits);
if (has_blend_mode) {
/* FIXME: implement */
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index b6acf1b..a556e19 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -252,6 +252,67 @@ tag_func_define_sprite (SwfdecSwfDecoder
return SWFDEC_STATUS_OK;
}
+void
+swfdec_filters_parse (SwfdecBits *bits)
+{
+ guint i, n_filters, filter_id;
+ n_filters = swfdec_bits_get_u8 (bits);
+ SWFDEC_WARNING (" filters: %u", n_filters);
+ for (i = 0; i < n_filters && swfdec_bits_left (bi...
2007 Feb 19
0
22 commits - libswfdec/js libswfdec/swfdec_debugger.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_script.c
...<otte@gnome.org>
Date: Mon Feb 19 10:44:58 2007 +0100
set buffer to NULL if not used, so we don't unref it later
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 97a1e4d..9fd2491 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -225,6 +225,7 @@ tag_func_define_sprite (SwfdecSwfDecoder
swfdec_swf_decoder_get_tag_name (tag), tag_len);
if (tag_len == 0) {
+ buffer = NULL;
swfdec_bits_init_data (&s->b, NULL, 0);
} else {
buffer = swfdec_bits_get_buffer (&parse, tag_len);
diff-tree c13c11c4f1bb89da4ff0ab669868a8968...
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
...parsing */
+ guint parse_frame; /* frame we're currently parsing. == n_frames if done parsing */
GHashTable * live_content; /* depth->SwfdecSpriteContent for every content in parse_frame */
};
@@ -87,12 +87,12 @@ struct _SwfdecSpriteClass
GType swfdec_sprite_get_type (void);
int tag_func_define_sprite (SwfdecSwfDecoder * s);
-void swfdec_sprite_add_sound_chunk (SwfdecSprite * sprite, unsigned int frame,
- SwfdecBuffer * chunk, int skip, unsigned int n_samples);
-void swfdec_sprite_set_n_frames (SwfdecSprite *sprite, unsigned int n_frames, unsigned int rate);
+void swfdec_sprite_add_sound_chu...
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
...parsing */
+ guint parse_frame; /* frame we're currently parsing. == n_frames if done parsing */
GHashTable * live_content; /* depth->SwfdecSpriteContent for every content in parse_frame */
};
@@ -87,12 +87,12 @@ struct _SwfdecSpriteClass
GType swfdec_sprite_get_type (void);
int tag_func_define_sprite (SwfdecSwfDecoder * s);
-void swfdec_sprite_add_sound_chunk (SwfdecSprite * sprite, unsigned int frame,
- SwfdecBuffer * chunk, int skip, unsigned int n_samples);
-void swfdec_sprite_set_n_frames (SwfdecSprite *sprite, unsigned int n_frames, unsigned int rate);
+void swfdec_sprite_add_sound_chu...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...= SWFDEC_STATUS_OK;
- unsigned char *endptr;
+ const unsigned char *endptr;
SwfdecBuffer *buffer;
s->b = s->parse;
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 4f57b1a..3896101 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -212,7 +212,6 @@ tag_func_define_sprite (SwfdecSwfDecoder
s->parse_sprite = sprite;
while (1) {
- unsigned char *endptr;
int x;
int tag;
guint tag_len;
@@ -258,7 +257,7 @@ tag_func_define_sprite (SwfdecSwfDecoder
SWFDEC_ERROR ("invalid tag %d %s during DefineSprite",
tag, swfdec_s...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...;mouse_in = swfdec_button_movie_mouse_in;
- //movie_class->mouse_change = swfdec_button_movie_mouse_change;
}
static void
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 5e0142e..692a0a0 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -253,77 +253,7 @@ tag_func_define_sprite (SwfdecSwfDecoder * s, guint define_sprite_tag)
return SWFDEC_STATUS_OK;
}
-#define CONTENT_IN_FRAME(content, frame) \
- ((content)->sequence->start <= frame && \
- (content)->sequence->end > frame)
-static guint
-swfdec_button_remove_duplicates (SwfdecButton *bu...