decoder/ffmpeg: detect and fix negative time stamps

Works around assertion failure due to something that appears to be a
(minor) FFmpeg bug.