Opus: avoid allocating space for comment packets
Fixes playback of files with large embedded album art. Change-Id: I94d336e3da968a93047dd00a5fa65e4c3423a7da
This commit is contained in:
parent
c7124b5520
commit
2e9aa3d8b0
1 changed files with 6 additions and 0 deletions
|
@ -384,6 +384,12 @@ enum codec_status codec_run(void)
|
|||
stream_init = 1;
|
||||
}
|
||||
|
||||
/* Do this to avoid allocating space for huge comment packets
|
||||
(embedded Album Art) */
|
||||
if(os.packetno == 1){
|
||||
ogg_sync_reset(&oy);
|
||||
}
|
||||
|
||||
/* Add page to the bitstream */
|
||||
ogg_stream_pagein(&os, &og);
|
||||
|
||||
|
|
Loading…
Reference in a new issue