diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-05 01:41:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-05 01:52:21 +0200 |
commit | 441dce21699f5780a7d9309451149ab876d641dc (patch) | |
tree | f8d373f9bef87ed52e12ddfe182e909bc5ac41b3 /libavcodec | |
parent | bce42e95d13e3cc9c32bcd75d127c0152e51471d (diff) | |
download | ffmpeg-441dce21699f5780a7d9309451149ab876d641dc.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vorbis_parser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/vorbis_parser.c b/libavcodec/vorbis_parser.c index d1f083874e..a0468cb652 100644 --- a/libavcodec/vorbis_parser.c +++ b/libavcodec/vorbis_parser.c @@ -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; } |