mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 12:55:16 +00:00
10l, the scr must be reset before overwriting the first pack with the correct system header (format=mpeg1|2)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22935 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
31a7f77164
commit
3e8e92dc2f
@ -2359,7 +2359,10 @@ static void mpegfile_write_index(muxer_t *muxer)
|
||||
while(flush_buffers(muxer, 0) > 0);
|
||||
flush_buffers(muxer, 1);
|
||||
if(priv->is_genmpeg1 || priv->is_genmpeg2)
|
||||
{
|
||||
priv->scr = 0;
|
||||
write_mpeg_pack(muxer, NULL, muxer->stream, 1); //insert fake Nav Packet
|
||||
}
|
||||
|
||||
mp_msg(MSGT_MUXER, MSGL_INFO, "\nOverhead: %.3lf%% (%"PRIu64" / %"PRIu64")\n", 100.0 * (double)priv->headers_size / (double)priv->data_size, priv->headers_size, priv->data_size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user