From e6fad97edc22d6bed23da9c823513f9a30a26065 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 19 Apr 2016 13:05:42 +0200 Subject: [PATCH] decoder/opus: support bigger OpusTags packets Required for OpusTags packets which contain artwork. See https://bugs.musicpd.org/view.php?id=4520 --- NEWS | 1 + src/decoder/plugins/OpusDecoderPlugin.cxx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index bd9c46968..ecb5e7c89 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ ver 0.19.15 (not yet released) * decoder - ffmpeg: support FFmpeg 3.0 - ffmpeg: use as fallback instead of "mad" if no plugin matches + - opus: support bigger OpusTags packets * fix more build failures on non-glibc builds due to constexpr Mutex ver 0.19.14 (2016/03/18) diff --git a/src/decoder/plugins/OpusDecoderPlugin.cxx b/src/decoder/plugins/OpusDecoderPlugin.cxx index e14827e38..f5dbb8fd3 100644 --- a/src/decoder/plugins/OpusDecoderPlugin.cxx +++ b/src/decoder/plugins/OpusDecoderPlugin.cxx @@ -441,8 +441,8 @@ mpd_opus_scan_stream(InputStream &is, if (!oy.ExpectFirstPage(os)) return false; - /* read at most two more pages */ - unsigned remaining_pages = 2; + /* read at most 64 more pages */ + unsigned remaining_pages = 64; bool result = false;