Don't manipulate duration when it's AV_NOPTS_VALUE.