[Swfdec] 2 commits - libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_loader.c

Benjamin Otte company at kemper.freedesktop.org
Fri Sep 14 14:53:05 PDT 2007


 libswfdec/swfdec_codec_ffmpeg.c |    1 +
 libswfdec/swfdec_loader.c       |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
diff-tree 1d7a9186e3cd756bc8f9c9c727dbec0aba0d7e45 (from 3a6b5c7b1cb39e13e6f1448a9dd6914555904cf3)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Sep 14 23:52:57 2007 +0200

    don't remove only the first directory, but all of them

diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index b6885e7..9bde057 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -444,7 +444,7 @@ swfdec_loader_get_filename (SwfdecLoader
   url = swfdec_loader_get_url (loader);
   path = swfdec_url_get_path (url);
   if (path) {
-    char *s = strchr (path, '/');
+    char *s = strrchr (path, '/');
     if (s)
       path = s + 1;
     if (path[0] == 0)
diff-tree 3a6b5c7b1cb39e13e6f1448a9dd6914555904cf3 (from 7e5f0fc97e0b8852a8856ed6b26dd48a2fcc3ffc)
Author: Benjamin Otte <otte at gnome.org>
Date:   Fri Sep 14 21:27:29 2007 +0200

    out_buf_size seems to be an in/out variable

diff --git a/libswfdec/swfdec_codec_ffmpeg.c b/libswfdec/swfdec_codec_ffmpeg.c
index 1ed3054..9e83efc 100644
--- a/libswfdec/swfdec_codec_ffmpeg.c
+++ b/libswfdec/swfdec_codec_ffmpeg.c
@@ -126,6 +126,7 @@ swfdec_audio_decoder_ffmpeg_push (Swfdec
   outbuf = swfdec_buffer_new_and_alloc (AVCODEC_MAX_AUDIO_FRAME_SIZE);
   for (amount = 0; amount < buffer->length; amount += len) {
     
+    out_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
     len = avcodec_decode_audio2 (ffmpeg->ctx, (short *) outbuf->data, &out_size, buffer->data + amount, buffer->length - amount);
 
     if (len < 0) {


More information about the Swfdec mailing list