Don't replace the initial frame's timestamp with a bogus one calculated from the (incorrect for Ogg) frame number just because the 'sync time' hasn't changed. Also, don't output a bogus warning about the output_frame being NULL when it's being dropped/skipped due to QoS.