vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Feb 13 17:49:29 2019 +0100| [c1ac5c96b022cd7c9bccb9890ae698181b326f62] | committer: Francois Cartegnie
demux: ogg: fix theora header test Roundhay_Garden_Scene.ogv > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c1ac5c96b022cd7c9bccb9890ae698181b326f62 --- modules/demux/ogg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c index 8356234811..f260de4061 100644 --- a/modules/demux/ogg.c +++ b/modules/demux/ogg.c @@ -1162,7 +1162,7 @@ static bool Ogg_IsHeaderPacket( const logical_stream_t *p_stream, return p_oggpacket->bytes > 0 && (p_oggpacket->packet[0] & PACKET_TYPE_HEADER); } - else return (p_oggpacket->granulepos == 0); + else return ( p_oggpacket->granulepos == 0 && p_stream->i_first_frame_index > 0 ); } /**************************************************************************** @@ -2247,6 +2247,7 @@ static void Ogg_LogicalStreamInit( logical_stream_t *p_stream ) es_format_Init( &p_stream->fmt, UNKNOWN_ES, 0 ); es_format_Init( &p_stream->fmt_old, UNKNOWN_ES, 0 ); p_stream->i_pcr = VLC_TICK_INVALID; + p_stream->i_first_frame_index = 1; date_Set( &p_stream->dts, VLC_TICK_INVALID ); p_stream->b_initializing = true; p_stream->b_contiguous = true; /* default */ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
