lavf: Check the return value of strftime