mirror of https://github.com/mpv-player/mpv
init frame duration to 1/fps when we have a frame but not the enclosing sequence header: it's workaround against lavf's demuxer that doesn't sync to seq_hdr unlike mplayer's native demuxers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17592 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f888ebd181
commit
574d5451fe
|
@ -1927,6 +1927,8 @@ static size_t parse_mpeg12_video(muxer_stream_t *s, muxer_priv_t *priv, muxer_he
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if(!spriv->nom_delta_pts) //workaround: lavf doesn't sync to sequence headers before passing demux_packets
|
||||||
|
spriv->delta_pts = spriv->nom_delta_pts = parse_fps(fps);
|
||||||
pt = (s->buffer[ptr+5] & 0x1c) >> 3;
|
pt = (s->buffer[ptr+5] & 0x1c) >> 3;
|
||||||
temp_ref = (s->buffer[ptr+4]<<2)+(s->buffer[ptr+5]>>6);
|
temp_ref = (s->buffer[ptr+4]<<2)+(s->buffer[ptr+5]>>6);
|
||||||
if(!spriv->vframes)
|
if(!spriv->vframes)
|
||||||
|
|
Loading…
Reference in New Issue