Opus: avoid allocating space for comment packets

Fixes playback of files with large embedded album art.

Change-Id: I94d336e3da968a93047dd00a5fa65e4c3423a7da
This commit is contained in:
Nils Wallménius 2013-05-19 12:18:43 +02:00
parent c7124b5520
commit 2e9aa3d8b0

View file

@ -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);