Commit f87986e4 authored by ogg.k.ogg.k's avatar ogg.k.ogg.k Committed by Laurent Aimar

non BOS headers for (Vorbis, Theora, Speex, Kate) do not have to be on...

non BOS headers for (Vorbis, Theora, Speex, Kate) do not have to be on separate pages, so avoid flushing before the last header
Signed-off-by: default avatarLaurent Aimar <fenrir@videolan.org>
parent fabf2399
...@@ -747,8 +747,12 @@ static block_t *OggCreateHeader( sout_mux_t *p_mux ) ...@@ -747,8 +747,12 @@ static block_t *OggCreateHeader( sout_mux_t *p_mux )
op.packetno = p_stream->i_packet_no++; op.packetno = p_stream->i_packet_no++;
ogg_stream_packetin( &p_stream->os, &op ); ogg_stream_packetin( &p_stream->os, &op );
p_og = OggStreamFlush( p_mux, &p_stream->os, 0 ); if( j == 0 )
block_ChainAppend( &p_hdr, p_og ); p_og = OggStreamFlush( p_mux, &p_stream->os, 0 );
else
p_og = OggStreamPageOut( p_mux, &p_stream->os, 0 );
if( p_og )
block_ChainAppend( &p_hdr, p_og );
} }
} }
else if( p_stream->i_fourcc != VLC_CODEC_FLAC && else if( p_stream->i_fourcc != VLC_CODEC_FLAC &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment