Mercurial > mplayer.hg
changeset 10711:bc1aad87439a
Fix for Theora files without audio. Patch by David Kuehling <dvdkhlng@gmx.de>.
author | mosu |
---|---|
date | Thu, 28 Aug 2003 17:32:28 +0000 |
parents | ef7e39061188 |
children | 03b410c39759 |
files | libmpdemux/demux_ogg.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c Thu Aug 28 13:31:44 2003 +0000 +++ b/libmpdemux/demux_ogg.c Thu Aug 28 17:32:28 2003 +0000 @@ -340,7 +340,10 @@ data = pack->packet; os->lastsize = 1; - if (context != NULL) + /* header packets beginn on 1-bit: thus check (*data&0x80). We don't + have theora_state st, until all header packets were passed to the + decoder. */ + if (context != NULL && !(*data&0x80)) { theora_state *st; int64_t usable_granulepos;