mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 22:49:58 +00:00
removed more unused stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18250 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ac1506c8b3
commit
2bea0ef1dd
@ -2271,23 +2271,19 @@ static void fix_parameters(muxer_stream_t *stream)
|
|||||||
|
|
||||||
|
|
||||||
static void mpegfile_write_chunk(muxer_stream_t *s,size_t len,unsigned int flags, double dts_arg, double pts_arg){
|
static void mpegfile_write_chunk(muxer_stream_t *s,size_t len,unsigned int flags, double dts_arg, double pts_arg){
|
||||||
size_t ptr=0, sz = 0;
|
size_t sz = 0;
|
||||||
uint64_t pts, tmp;
|
uint64_t tmp;
|
||||||
muxer_t *muxer = s->muxer;
|
muxer_t *muxer = s->muxer;
|
||||||
muxer_priv_t *priv = (muxer_priv_t *)muxer->priv;
|
muxer_priv_t *priv = (muxer_priv_t *)muxer->priv;
|
||||||
muxer_headers_t *spriv = (muxer_headers_t*) s->priv;
|
muxer_headers_t *spriv = (muxer_headers_t*) s->priv;
|
||||||
FILE *f;
|
|
||||||
float fps;
|
float fps;
|
||||||
uint32_t stream_format, nf;
|
uint32_t stream_format, nf;
|
||||||
|
|
||||||
f = muxer->file;
|
|
||||||
|
|
||||||
if(s->buffer == NULL)
|
if(s->buffer == NULL)
|
||||||
return;
|
return;
|
||||||
if(len == -1)
|
if(len == -1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
pts = 0;
|
|
||||||
if (s->type == MUXER_TYPE_VIDEO) { // try to recognize frame type...
|
if (s->type == MUXER_TYPE_VIDEO) { // try to recognize frame type...
|
||||||
fps = (float) s->h.dwRate/ (float) s->h.dwScale;
|
fps = (float) s->h.dwRate/ (float) s->h.dwScale;
|
||||||
spriv->type = 1;
|
spriv->type = 1;
|
||||||
@ -2358,7 +2354,6 @@ static void mpegfile_write_chunk(muxer_stream_t *s,size_t len,unsigned int flags
|
|||||||
{
|
{
|
||||||
parse_audio(s, 0, &nf, &fake_timer, priv->init_adelay, priv->drop);
|
parse_audio(s, 0, &nf, &fake_timer, priv->init_adelay, priv->drop);
|
||||||
spriv->vframes += nf;
|
spriv->vframes += nf;
|
||||||
sz = max(len, 2 * priv->packet_size);
|
|
||||||
if(! spriv->vframes)
|
if(! spriv->vframes)
|
||||||
mp_msg(MSGT_MUXER, MSGL_INFO, "AINIT: %.3lf\r\n", (double) spriv->last_pts/27000000.0f);
|
mp_msg(MSGT_MUXER, MSGL_INFO, "AINIT: %.3lf\r\n", (double) spriv->last_pts/27000000.0f);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user