diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbcodec/codecs/opus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rbcodec/codecs/opus.c b/lib/rbcodec/codecs/opus.c index d72b9cc708..86ddb31936 100644 --- a/lib/rbcodec/codecs/opus.c +++ b/lib/rbcodec/codecs/opus.c | |||
@@ -384,6 +384,12 @@ enum codec_status codec_run(void) | |||
384 | stream_init = 1; | 384 | stream_init = 1; |
385 | } | 385 | } |
386 | 386 | ||
387 | /* Do this to avoid allocating space for huge comment packets | ||
388 | (embedded Album Art) */ | ||
389 | if(os.packetno == 1){ | ||
390 | ogg_sync_reset(&oy); | ||
391 | } | ||
392 | |||
387 | /* Add page to the bitstream */ | 393 | /* Add page to the bitstream */ |
388 | ogg_stream_pagein(&os, &og); | 394 | ogg_stream_pagein(&os, &og); |
389 | 395 | ||