[Swfdec] libswfdec/swfdec_codec_adpcm.c

Benjamin Otte company at kemper.freedesktop.org
Sun Apr 8 11:36:24 PDT 2007


 libswfdec/swfdec_codec_adpcm.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree d2d5d5c377fd595bd8fef79d9773c9ed78410fc1 (from 4625b650404a4b14c47eaeeb5032bc73d843880d)
Author: Benjamin Otte <otte at gnome.org>
Date:   Sun Apr 8 20:37:46 2007 +0200

    fix ADPCM to actually not crash upon creation
    
    (Testing software seems like a good idea sometimes :o

diff --git a/libswfdec/swfdec_codec_adpcm.c b/libswfdec/swfdec_codec_adpcm.c
index d094968..a435041 100644
--- a/libswfdec/swfdec_codec_adpcm.c
+++ b/libswfdec/swfdec_codec_adpcm.c
@@ -172,13 +172,13 @@ swfdec_audio_decoder_adpcm_new (SwfdecAu
 
   if (type != SWFDEC_AUDIO_FORMAT_ADPCM)
     return NULL;
+  adpcm = g_slice_new (SwfdecAudioDecoderAdpcm);
   adpcm->decoder.out_format = format;
   adpcm->decoder.push = swfdec_audio_decoder_adpcm_push;
   adpcm->decoder.pull = swfdec_audio_decoder_adpcm_pull;
   adpcm->decoder.free = swfdec_audio_decoder_adpcm_free;
   adpcm->queue = swfdec_buffer_queue_new ();
 
-  adpcm = g_slice_new (SwfdecAudioDecoderAdpcm);
   return &adpcm->decoder;
 }
 


More information about the Swfdec mailing list