ffdec: Do not use invalid input timestamp as next timestamp.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Mon, 28 Feb 2011 21:16:24 +0000 (21:16 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 9 May 2011 09:02:50 +0000 (11:02 +0200)
commita3c56f60cdb81a7100352821e2972b3014286ee9
tree474a630c5f69eb2362d4ce1845930f0636bb1307
parent920bfb0da20f939f13b1742946af8fa3253723a9
ffdec: Do not use invalid input timestamp as next timestamp.

When input buffer timestamps are invalid, next timestamp are used for
audio. Then, the next out timestamp is updated with the used timestamp
and the calculated duration. However, if the used timestamp is invalid,
it should not be used. Otherwise, the next buffer will use a wrong
timestamp that is not in the clipped segment, making the buffer to be
dropped.

This fixes playback with SBTVD MPEG TS streams, using AAC LATM.
ext/ffmpeg/gstffmpegdec.c