[FFmpeg-devel] [PATCH] avformat/oggparseopus: fix segmented timestamps

Nicolas George george at nsup.org
Sat Jan 4 12:44:02 CET 2014

Le primidi 11 nivôse, an CCXXII, Mark Harris a écrit :
> Fix timestamp calculation for code 3 Ogg Opus packets with less than
> 2 bytes in the last segment (e.g. packet length 255 or 256).
> A sample that would seek incorrectly in ffplay can be created with:
>   ffmpeg -i in.wav -b:a 34k -vbr off -frame_duration 60 out.opus
> Also do not read past the end of the buffer when a packet has length 0.
> ---
>  libavformat/oggparseopus.c | 15 ++++++---------
>  1 file changed, 6 insertions(+), 9 deletions(-)

I wrote that file initially, but you seem to understand better than me how
Ogg pages / packets / granule work, so I do not object.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140104/e63665d6/attachment.asc>

More information about the ffmpeg-devel mailing list