search for: tag_func_sound_stream_head

Displaying 5 results from an estimated 5 matches for "tag_func_sound_stream_head".

2007 Oct 13
2
[Bug 12793] New: Crash playing a swf file (because of missing NULL ptr check)
...nent: library AssignedTo: swfdec at lists.freedesktop.org ReportedBy: leroutier at gmail.com QAContact: swfdec at lists.freedesktop.org Trying to play a swf file on my harddrive, I had a crash. Looking at gdb's output, I saw that : SWFDEC: FIXME: swfdec_sound.c(254): tag_func_sound_stream_head: playback codec 2 doesn't match sound codec 0 SWFDEC: FIXME: swfdec_pattern.c(446): swfdec_pattern_do_parse: CAIRO_EXTEND_PAD is not yet implemented SWFDEC: WARN : swfdec_shape_parser.c(279): swfdec_shape_parser_finish: fillstyle 0 has no path SWFDEC: FIXME: swfdec_sound.c(254): tag_func_sound_...
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
...chunk; @@ -117,7 +117,7 @@ tag_func_sound_stream_block (SwfdecSwfDe } int -tag_func_define_sound (SwfdecSwfDecoder * s) +tag_func_define_sound (SwfdecSwfDecoder * s, guint tag) { 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, gu...
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
...tag_func_enqueue, SPRITE}, + [SWFDEC_TAG_STARTSOUND] = {"StartSound", tag_func_enqueue, SWFDEC_TAG_DEFINE_SPRITE }, [SWFDEC_TAG_DEFINEBUTTONSOUND] = {"DefineButtonSound", tag_func_define_button_sound, 0}, - [SWFDEC_TAG_SOUNDSTREAMHEAD] = {"SoundStreamHead", tag_func_sound_stream_head, SPRITE}, - [SWFDEC_TAG_SOUNDSTREAMBLOCK] = {"SoundStreamBlock", tag_func_sound_stream_block, SPRITE}, + [SWFDEC_TAG_SOUNDSTREAMHEAD] = {"SoundStreamHead", tag_func_sound_stream_head, SWFDEC_TAG_DEFINE_SPRITE }, + [SWFDEC_TAG_SOUNDSTREAMBLOCK] = {"SoundStreamBlock",...
2007 Nov 08
0
configure.ac libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h
...default: + g_assert_not_reached (); } interpolation = swfdec_bits_getbits (bits, 2); if (interpolation) { diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c index 06022bc..0d795e7 100644 --- a/libswfdec/swfdec_sound.c +++ b/libswfdec/swfdec_sound.c @@ -265,23 +265,25 @@ tag_func_sound_stream_head (SwfdecSwfDecoder * s, guint tag) s->parse_sprite->frames[s->parse_sprite->parse_frame].sound_head = sound; switch (sound->codec) { - case 0: + case SWFDEC_AUDIO_CODEC_UNDEFINED: if (swfdec_audio_format_is_16bit (sound->format)) { SWFDEC_WARNING ("undef...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...r (sound, decoder, sound->encoded); - tmp2 = swfdec_sound_finish_decoder (sound, decoder); + tmp = swfdec_audio_codec_decode (codec, decoder, sound->encoded); + tmp2 = swfdec_audio_codec_finish (codec, decoder); if (tmp == NULL) { if (tmp2) { tmp = tmp2; @@ -307,10 +308,6 @@ tag_func_sound_stream_head (SwfdecSwfDec SWFDEC_WARNING ("unknown format %d", format); sound->format = format; } - sound->codec = swfdec_codec_get_audio (sound->format); - if (sound->codec == NULL) { - SWFDEC_WARNING ("No codec found for format %u", sound->format); -...