diff options
author | Santiago M. Mola <coldwind@gentoo.org> | 2008-12-01 21:19:32 +0000 |
---|---|---|
committer | Santiago M. Mola <coldwind@gentoo.org> | 2008-12-01 21:19:32 +0000 |
commit | addfb251c3d830952a32ee12595df199cce7341d (patch) | |
tree | 203d3d1f1f42f6e704e5205bb1cb95cc9d158b0d /media-sound/picard/files | |
parent | stable ppc64, bug 245574 (diff) | |
download | historical-addfb251c3d830952a32ee12595df199cce7341d.tar.gz historical-addfb251c3d830952a32ee12595df199cce7341d.tar.bz2 historical-addfb251c3d830952a32ee12595df199cce7341d.zip |
Fix bug #246148, thanks to Markus Rathgeb <maggu2810@web.de>.
Package-Manager: portage-2.2_rc16/cvs/Linux 2.6.27-gentoo-r2 x86_64
Diffstat (limited to 'media-sound/picard/files')
-rw-r--r-- | media-sound/picard/files/picard-0.10-ffmpeg-avcodec_decode_audio2.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/media-sound/picard/files/picard-0.10-ffmpeg-avcodec_decode_audio2.patch b/media-sound/picard/files/picard-0.10-ffmpeg-avcodec_decode_audio2.patch new file mode 100644 index 000000000000..bec38313c2a2 --- /dev/null +++ b/media-sound/picard/files/picard-0.10-ffmpeg-avcodec_decode_audio2.patch @@ -0,0 +1,17 @@ +Source: Markus Rathgeb <maggu2810@web.de> +Upstream: Applied in trunk, 0.11 will be fixed. +Reason: avcodec_decode_audio is deprecated in latest ffmpeg. +http://bugs.gentoo.org/show_bug.cgi?id=246148 +http://forums.musicbrainz.org/viewtopic.php?id=1369 +--- picard-0.10/picard/musicdns/avcodec.c.org 2008-11-09 12:47:41.000000000 +0100 ++++ picard-0.10/picard/musicdns/avcodec.c 2008-11-09 12:47:49.000000000 +0100 +@@ -278,7 +278,8 @@ + data = packet.data; + + while (size > 0) { +- len = avcodec_decode_audio(codec_context, (int16_t *)buffer_ptr, &output_size, data, size); ++ output_size = buffer_size + AVCODEC_MAX_AUDIO_FRAME_SIZE; ++ len = avcodec_decode_audio2(codec_context, (int16_t *)buffer_ptr, &output_size, data, size); + + if (len < 0) + break; |