shithub: libopusenc

Download patch

ref: 599c3d20dc3a82a0dc27043b6a6507a5adb05b2e
parent: 90aad98fb1b999bf08d1bf7c698215b3bc77c5cf
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Thu May 4 21:14:02 EDT 2017

Add EOS support

--- a/src/ogg_packer.c
+++ b/src/ogg_packer.c
@@ -337,6 +337,7 @@
   /* FIXME: handle eos/continuation */
   ptr[5]=0x00;
   if (p->pageno == 0) ptr[5] |= 0x02;
+  if (oggp->pages_fill==1 && oggp->is_eos) ptr[5] |= 0x04;
 
   granule_pos = p->granulepos;
   /* 64 bits of PCM position */