demux: ogg: avoid use-after-free