oggvorbis: move handling of first packets ts from parser to muxer.
The parser does not have enough knowledge it seems to do it correctly. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
bce42e95d1
commit
441dce2169
2 changed files with 2 additions and 3 deletions
|
|
@ -226,8 +226,7 @@ int avpriv_vorbis_parse_frame(VorbisParseContext *s, const uint8_t *buf,
|
|||
previous_blocksize = s->blocksize[flag];
|
||||
}
|
||||
current_blocksize = s->mode_blocksize[mode];
|
||||
if(previous_blocksize)
|
||||
duration = (previous_blocksize + current_blocksize) >> 2;
|
||||
duration = (previous_blocksize + current_blocksize) >> 2;
|
||||
s->previous_blocksize = current_blocksize;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue