rtmp: Set correct duration

Fixes #2201