avformat/movenc: add rtp_hinting_needed() helper function