vorbisenc: Ensure output buffers fall within the segment
authorJan Schmidt <thaytan@noraisin.net>
Wed, 29 Apr 2009 15:45:27 +0000 (16:45 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Wed, 29 Apr 2009 15:48:45 +0000 (16:48 +0100)
commitd14c80b22e5d128093fc642cf48406710f9123db
tree4c7fc300cd3155ffd841fb78b7741e058ea031da
parent9f74ce745f6debad0b00a7e25a22d7397606d6a0
vorbisenc: Ensure output buffers fall within the segment

Add the start position of the first segment to the running time
used to generate buffer timestamps in vorbisenc. This avoids generating
buffers which fall outside the initial segment. The element segment
handling requires more extensive fixing, but this at least prevents
regressions. Fixes: #580020
ext/vorbis/gstvorbisenc.h
ext/vorbis/vorbisenc.c