Benjamin Otte
2007-Sep-14 21:53 UTC
[Swfdec] 2 commits - libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_loader.c
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) {
Maybe Matching Threads
- 2 commits - libswfdec/swfdec_codec_ffmpeg.c
- 5 commits - libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_player.c libswfdec/swfdec_video.c
- 4 commits - libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_stream.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_mad.c
- Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
- 6 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_buffer.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c