mirror of
https://github.com/mpv-player/mpv
synced 2025-01-06 23:20:15 +00:00
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:
parent
7f30bfeaac
commit
a4510b38e2
@ -340,7 +340,10 @@ static unsigned char* demux_ogg_read_packet(ogg_stream_t* os,ogg_packet* pack,vo
|
|||||||
data = pack->packet;
|
data = pack->packet;
|
||||||
os->lastsize = 1;
|
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;
|
theora_state *st;
|
||||||
int64_t usable_granulepos;
|
int64_t usable_granulepos;
|
||||||
|
Loading…
Reference in New Issue
Block a user