ffmpegenc: Fix timestamp resyncing
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 2 Jul 2010 21:38:06 +0000 (18:38 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Sat, 3 Jul 2010 14:57:09 +0000 (11:57 -0300)
commitb8f556a566483758be82797421cb9593bba1ac43
tree1d0107528e05f7c5d275ee66e17f7ef8d30fc3c5
parent2f6086e49589be3c7bc54c0e822c4f9e23161a46
ffmpegenc: Fix timestamp resyncing

Properly convert bytes into time using sample size, sample rate
and channels number, instead of sample rate only.

This can cause huge timestamp discontinuities (even though the
durations remain correct) and might cause problems to muxers.

Fixes #623388
ext/ffmpeg/gstffmpegenc.c