mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
in mpegfile_write_header(only for mpeg1/2) don't overwrite the values of bufsize with dwSuggestedBufferSize (those values are completely invented)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22945 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
76429f1c97
commit
ee3adc95aa
@ -2379,16 +2379,6 @@ static void mpegfile_write_header(muxer_t *muxer)
|
||||
|
||||
priv->headers_cnt++;
|
||||
|
||||
if((priv->is_genmpeg1 || priv->is_genmpeg2) && (priv->headers_cnt == muxer->avih.dwStreams))
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < muxer->avih.dwStreams; i++)
|
||||
{
|
||||
priv->sys_info.streams[i].bufsize = muxer->streams[i]->h.dwSuggestedBufferSize;
|
||||
mp_msg(MSGT_MUXER, MSGL_DBG2, "IDX: %d, BUFSIZE: %u\n", i, priv->sys_info.streams[i].bufsize);
|
||||
}
|
||||
}
|
||||
|
||||
//write the first system header only for generic mpeg1/2 muxes, and only when we have collected all necessary infos
|
||||
if(priv->is_genmpeg1 || priv->is_genmpeg2 || ((priv->is_xvcd || priv->is_xsvcd) && (priv->headers_cnt == 1)))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user