avidec: fix duration and bitrate of truncated files

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>