decoder/opus: support bigger OpusTags packets

Required for OpusTags packets which contain artwork.

See https://bugs.musicpd.org/view.php?id=4520
This commit is contained in:
Max Kellermann 2016-04-19 13:05:42 +02:00
parent 70495aada1
commit e6fad97edc
2 changed files with 3 additions and 2 deletions

1
NEWS
View File

@ -2,6 +2,7 @@ ver 0.19.15 (not yet released)
* decoder * decoder
- ffmpeg: support FFmpeg 3.0 - ffmpeg: support FFmpeg 3.0
- ffmpeg: use as fallback instead of "mad" if no plugin matches - 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 * fix more build failures on non-glibc builds due to constexpr Mutex
ver 0.19.14 (2016/03/18) ver 0.19.14 (2016/03/18)

View File

@ -441,8 +441,8 @@ mpd_opus_scan_stream(InputStream &is,
if (!oy.ExpectFirstPage(os)) if (!oy.ExpectFirstPage(os))
return false; return false;
/* read at most two more pages */ /* read at most 64 more pages */
unsigned remaining_pages = 2; unsigned remaining_pages = 64;
bool result = false; bool result = false;