flacparse: fix last frame timestamp in fixed block size mode
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 7 Oct 2011 18:41:35 +0000 (19:41 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 7 Nov 2011 12:37:10 +0000 (12:37 +0000)
commit14a9d1d66e802271b5cfb447442f2d7197e02950
tree99b0f46b940f2774b0395d8fa51e828619d41136
parent6a257273212f2c4e5b4edea40554d5635d9e1dc4
flacparse: fix last frame timestamp in fixed block size mode

The last block may have a different block size, so we should not
use it to scale or we'll end up with a wrong timestamp.
See comment and quote from the FLAC format documentation in the code.

Fixes looped playback of FLAC files (via about-to-finish).

https://bugzilla.gnome.org/show_bug.cgi?id=661215
gst/audioparsers/gstflacparse.c