plugins/ogg: Refactor to conquer
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 27 Aug 2013 04:56:43 +0000 (01:56 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 27 Aug 2013 04:56:43 +0000 (01:56 -0300)
commitdf4aa2375e5b692ff39dd716a0710a966ff5dea2
tree157e90a29fd77d14d8f53fd65f1ab3c1e99f3e9d
parenta8650c0cff2db4704e6fadeba9529800519b7817
plugins/ogg: Refactor to conquer

  * Add reference links
  * Parse all streams in a file - we only consider the first one
    regarding audio files, but this paves the way to support video
    (which has never been supported in ogg plugin)
  * Split the file parsing into pages/packets/codec-data. This makes it
    easier to support theora (needed for video) and also for removing
    libvorbis if it's desired in the future
  * Be safer regarding packets crossing page boundaries
  * Be safer regarding EOF in the middle of parsing
src/plugins/ogg/ogg.c