search for: uncompressed_buffer

Displaying 6 results from an estimated 6 matches for "uncompressed_buffer".

Did you mean: uncompress_buffer
2007 Apr 22
0
libswfdec/swfdec_swf_decoder.c
..._all (SwfdecSw return TRUE; } -static void +static gboolean swf_inflate_init (SwfdecSwfDecoder * s) { SwfdecDecoder *dec = SWFDEC_DECODER (s); z_stream *z; int ret; + guint8 *data; + data = g_try_malloc (dec->bytes_total - 8); + if (data == NULL) + return FALSE; + s->uncompressed_buffer = swfdec_buffer_new_for_data (data, dec->bytes_total - 8); z = &s->z; z->zalloc = zalloc; z->zfree = zfree; ret = inflateInit (z); SWFDEC_DEBUG ("inflateInit returned %d", ret); - s->uncompressed_buffer = swfdec_buffer_new_and_alloc (dec->bytes_tota...
2007 Mar 29
0
Branch 'as' - 9 commits - configure.ac doc/swfdec-sections.txt 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_stack.c
...get %u and skip %u", diff --git a/libswfdec/swfdec_swf_decoder.c b/libswfdec/swfdec_swf_decoder.c index f205eed..3954b36 100644 --- a/libswfdec/swfdec_swf_decoder.c +++ b/libswfdec/swfdec_swf_decoder.c @@ -60,7 +60,7 @@ swfdec_decoder_dispose (GObject *object) swfdec_buffer_unref (s->uncompressed_buffer); s->uncompressed_buffer = NULL; } - swfdec_buffer_queue_free (s->input_queue); + swfdec_buffer_queue_unref (s->input_queue); if (s->jpegtables) { swfdec_buffer_unref (s->jpegtables); diff --git a/test/sound/sound.c b/test/sound/sound.c index f42149f..6cbb5cc 1006...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...der.c b/libswfdec/swfdec_swf_decoder.c index 6539921..0bc1099 100644 --- a/libswfdec/swfdec_swf_decoder.c +++ b/libswfdec/swfdec_swf_decoder.c @@ -143,7 +143,7 @@ swf_inflate_init (SwfdecSwfDecoder * s) ret = inflateInit (z); SWFDEC_DEBUG ("inflateInit returned %d", ret); - s->uncompressed_buffer = swfdec_buffer_new_and_alloc (dec->bytes_total); + s->uncompressed_buffer = swfdec_buffer_new_and_alloc (dec->bytes_total - 8); z->next_out = s->uncompressed_buffer->data; z->avail_out = s->uncompressed_buffer->length; z->opaque = NULL; diff-tree 800b8b573d0...
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...x c1629bc..f205eed 100644 --- a/libswfdec/swfdec_swf_decoder.c +++ b/libswfdec/swfdec_swf_decoder.c @@ -54,7 +54,6 @@ swfdec_decoder_dispose (GObject *object) g_hash_table_destroy (s->characters); g_object_unref (s->main_sprite); - g_hash_table_destroy (s->exports); if (s->uncompressed_buffer) { inflateEnd (&s->z); @@ -347,19 +346,6 @@ swfdec_swf_decoder_init (SwfdecSwfDecode s->characters = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, g_object_unref); s->input_queue = swfdec_buffer_queue_new (); - s->exports = g_hash_table_new_full (g_...
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
...array, SwfdecRootAction, j); switch (action->type) { case SWFDEC_ROOT_ACTION_EXPORT: @@ -86,6 +86,7 @@ swfdec_decoder_dispose (GObject *object) g_hash_table_destroy (s->characters); g_object_unref (s->main_sprite); + g_hash_table_destroy (s->scripts); if (s->uncompressed_buffer) { inflateEnd (&s->z); @@ -379,7 +380,7 @@ swfdec_swf_decoder_class_init (SwfdecSwf GObjectClass *object_class = G_OBJECT_CLASS (class); SwfdecDecoderClass *decoder_class = SWFDEC_DECODER_CLASS (class); - object_class->dispose = swfdec_decoder_dispose; + object_class->di...
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
...der.c b/libswfdec/swfdec_swf_decoder.c index 6539921..0bc1099 100644 --- a/libswfdec/swfdec_swf_decoder.c +++ b/libswfdec/swfdec_swf_decoder.c @@ -143,7 +143,7 @@ swf_inflate_init (SwfdecSwfDecoder * s) ret = inflateInit (z); SWFDEC_DEBUG ("inflateInit returned %d", ret); - s->uncompressed_buffer = swfdec_buffer_new_and_alloc (dec->bytes_total); + s->uncompressed_buffer = swfdec_buffer_new_and_alloc (dec->bytes_total - 8); z->next_out = s->uncompressed_buffer->data; z->avail_out = s->uncompressed_buffer->length; z->opaque = NULL; diff-tree 800b8b573d0...