oggstream: recognize opus headers from data, not packet count
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 22 Nov 2011 13:15:33 +0000 (13:15 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 22 Nov 2011 13:15:33 +0000 (13:15 +0000)
commitbf73491077d31db9032e13a0640a5c4552f5aee9
treeebe50f9325a6cdf47e17d8cfe3fa9975c5651caf
parent9d4989395cd6494b3e1f4ea4f8cdaf1e821b168f
oggstream: recognize opus headers from data, not packet count

Opus streams outside of Ogg may not have headers, and oggstream
may be used by oggmux to mux an Opus stream which does not come
from Ogg - thus without headers.
Determining headerness by packet count would strip the first two
packets from such an Opus stream, leading to a very small amount
of audio being clipped at the beginning of the stream.
ext/ogg/gstoggstream.c