Fix for Theora files without audio. Patch by David Kuehling <dvdkhlng@gmx.de>.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10712 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
mosu 2003-08-28 17:32:28 +00:00
parent 7f30bfeaac
commit a4510b38e2
1 changed files with 4 additions and 1 deletions

View File

@ -340,7 +340,10 @@ static unsigned char* demux_ogg_read_packet(ogg_stream_t* os,ogg_packet* pack,vo
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;