Fix rounding direction for calculation of AVPacket.duration.